Lines Matching refs:fb

32 void setDepthAttachment(const Context *rsc, const FBOCache *fb) {  in setDepthAttachment()  argument
33 RsdFrameBufferObj *fbo = (RsdFrameBufferObj*)fb->mHal.drv; in setDepthAttachment()
36 if (fb->mHal.state.depthTarget != nullptr) { in setDepthAttachment()
37 depth = (DrvAllocation *)fb->mHal.state.depthTarget->mHal.drv; in setDepthAttachment()
40 rsdAllocationSyncAll(rsc, fb->mHal.state.depthTarget, in setDepthAttachment()
47 void setColorAttachment(const Context *rsc, const FBOCache *fb) { in setColorAttachment() argument
48 RsdFrameBufferObj *fbo = (RsdFrameBufferObj*)fb->mHal.drv; in setColorAttachment()
50 for (uint32_t i = 0; i < fb->mHal.state.colorTargetsCount; i ++) { in setColorAttachment()
52 if (fb->mHal.state.colorTargets[i] != nullptr) { in setColorAttachment()
53 color = (DrvAllocation *)fb->mHal.state.colorTargets[i]->mHal.drv; in setColorAttachment()
56 rsdAllocationSyncAll(rsc, fb->mHal.state.colorTargets[i], in setColorAttachment()
64 bool rsdFrameBufferInit(const Context *rsc, const FBOCache *fb) { in rsdFrameBufferInit() argument
69 fb->mHal.drv = fbo; in rsdFrameBufferInit()
77 void rsdFrameBufferSetActive(const Context *rsc, const FBOCache *fb) { in rsdFrameBufferSetActive() argument
78 setDepthAttachment(rsc, fb); in rsdFrameBufferSetActive()
79 setColorAttachment(rsc, fb); in rsdFrameBufferSetActive()
81 RsdFrameBufferObj *fbo = (RsdFrameBufferObj *)fb->mHal.drv; in rsdFrameBufferSetActive()
82 if (fb->mHal.state.colorTargets[0]) { in rsdFrameBufferSetActive()
83 fbo->setDimensions(fb->mHal.state.colorTargets[0]->getType()->getDimX(), in rsdFrameBufferSetActive()
84 fb->mHal.state.colorTargets[0]->getType()->getDimY()); in rsdFrameBufferSetActive()
85 } else if (fb->mHal.state.depthTarget) { in rsdFrameBufferSetActive()
86 fbo->setDimensions(fb->mHal.state.depthTarget->getType()->getDimX(), in rsdFrameBufferSetActive()
87 fb->mHal.state.depthTarget->getType()->getDimY()); in rsdFrameBufferSetActive()
93 void rsdFrameBufferDestroy(const Context *rsc, const FBOCache *fb) { in rsdFrameBufferDestroy() argument
94 RsdFrameBufferObj *fbo = (RsdFrameBufferObj *)fb->mHal.drv; in rsdFrameBufferDestroy()
96 fb->mHal.drv = nullptr; in rsdFrameBufferDestroy()