Lines Matching refs:rsc
120 pending(struct fd_resource *rsc, bool write) in pending() argument
123 if (rsc->write_batch) in pending()
127 if (write && rsc->batch_mask) in pending()
130 if (rsc->stencil && pending(rsc->stencil, write)) in pending()
149 fd_resource_slice(struct fd_resource *rsc, unsigned level) in fd_resource_slice() argument
151 assert(level <= rsc->base.last_level); in fd_resource_slice()
152 return &rsc->slices[level]; in fd_resource_slice()
157 fd_resource_offset(struct fd_resource *rsc, unsigned level, unsigned layer) in fd_resource_offset() argument
159 struct fd_resource_slice *slice = fd_resource_slice(rsc, level); in fd_resource_offset()
161 if (rsc->layer_first) { in fd_resource_offset()
162 offset = slice->offset + (rsc->layer_size * layer); in fd_resource_offset()
166 debug_assert(offset < fd_bo_size(rsc->bo)); in fd_resource_offset()
187 uint32_t fd_setup_slices(struct fd_resource *rsc);