Searched refs:prsrc (Results 1 – 5 of 5) sorted by relevance
1098 struct panfrost_resource *prsrc, in panfrost_should_linear_convert() argument1101 if (prsrc->modifier_constant) in panfrost_should_linear_convert()1112 unsigned depth = prsrc->base.target == PIPE_TEXTURE_3D ? in panfrost_should_linear_convert()1113 prsrc->base.depth0 : prsrc->base.array_size; in panfrost_should_linear_convert()1115 prsrc->base.last_level == 0 && in panfrost_should_linear_convert()1116 transfer->box.width == prsrc->base.width0 && in panfrost_should_linear_convert()1117 transfer->box.height == prsrc->base.height0 && in panfrost_should_linear_convert()1124 ++prsrc->modifier_updates; in panfrost_should_linear_convert()1126 if (prsrc->modifier_updates >= LAYOUT_CONVERT_THRESHOLD) { in panfrost_should_linear_convert()1141 struct panfrost_resource *prsrc = (struct panfrost_resource *) transfer->resource; in panfrost_ptr_unmap() local[all …]
450 struct panfrost_resource *prsrc = pan_resource(surf->texture); in panfrost_batch_to_fb_info() local466 rts[i].image = &prsrc->image; in panfrost_batch_to_fb_info()469 fb->rts[i].crc_valid = &prsrc->valid.crc; in panfrost_batch_to_fb_info()476 BITSET_TEST(prsrc->valid.data, fb->rts[i].view->first_level)))) in panfrost_batch_to_fb_info()
1249 struct panfrost_resource *prsrc = (struct panfrost_resource *)texture; in panfrost_create_sampler_view_bo() local1251 assert(prsrc->image.data.bo); in panfrost_create_sampler_view_bo()1255 assert(prsrc->separate_stencil); in panfrost_create_sampler_view_bo()1256 texture = &prsrc->separate_stencil->base; in panfrost_create_sampler_view_bo()1257 prsrc = (struct panfrost_resource *)texture; in panfrost_create_sampler_view_bo()1275 so->texture_bo = prsrc->image.data.bo->ptr.gpu; in panfrost_create_sampler_view_bo()1276 so->modifier = prsrc->image.layout.modifier; in panfrost_create_sampler_view_bo()1298 first_layer /= prsrc->image.layout.depth; in panfrost_create_sampler_view_bo()1299 last_layer /= prsrc->image.layout.depth; in panfrost_create_sampler_view_bo()1316 .image = &prsrc->image, in panfrost_create_sampler_view_bo()
313 read_rsrc_char (const SD2_RSRC *prsrc, int offset) in read_rsrc_char() argument314 { const unsigned char * data = prsrc->rsrc_data ; in read_rsrc_char()315 if (offset < 0 || offset >= prsrc->rsrc_len) in read_rsrc_char()321 read_rsrc_short (const SD2_RSRC *prsrc, int offset) in read_rsrc_short() argument322 { const unsigned char * data = prsrc->rsrc_data ; in read_rsrc_short()323 if (offset < 0 || offset + 1 >= prsrc->rsrc_len) in read_rsrc_short()329 read_rsrc_int (const SD2_RSRC *prsrc, int offset) in read_rsrc_int() argument330 { const unsigned char * data = prsrc->rsrc_data ; in read_rsrc_int()331 if (offset < 0 || offset + 3 >= prsrc->rsrc_len) in read_rsrc_int()337 read_rsrc_marker (const SD2_RSRC *prsrc, int offset) in read_rsrc_marker() argument[all …]
275 struct pipe_resource *prsrc) in agx_resource_destroy() argument277 struct agx_resource *rsrc = (struct agx_resource *)prsrc; in agx_resource_destroy()373 struct pipe_resource *prsrc = transfer->resource; in agx_transfer_unmap() local374 struct agx_resource *rsrc = (struct agx_resource *) prsrc; in agx_transfer_unmap()375 unsigned bytes_per_pixel = util_format_get_blocksize(prsrc->format); in agx_transfer_unmap()673 struct pipe_resource *prsrc, in agx_flush_frontbuffer() argument677 struct agx_resource *rsrc = (struct agx_resource *) prsrc; in agx_flush_frontbuffer()