Lines Matching refs:rsrc
57 struct panfrost_resource *rsrc = pan_resource(surf->texture);
58 panfrost_batch_write_rsrc(batch, rsrc, PIPE_SHADER_FRAGMENT);
126 struct panfrost_resource *rsrc = (void *) entry->key;
128 if (_mesa_hash_table_search(ctx->writers, rsrc)) {
129 _mesa_hash_table_remove_key(ctx->writers, rsrc);
130 rsrc->track.nr_writers--;
133 rsrc->track.nr_users--;
135 pipe_resource_reference((struct pipe_resource **) &rsrc, NULL);
236 struct panfrost_resource *rsrc, bool writes)
240 struct hash_entry *entry = _mesa_hash_table_search(ctx->writers, rsrc);
244 _mesa_set_search_or_add(batch->resources, rsrc, &found);
248 rsrc->track.nr_users++;
251 pipe_reference(NULL, &rsrc->base.reference);
265 if (_mesa_set_search(batch->resources, rsrc))
271 _mesa_hash_table_insert(ctx->writers, rsrc, batch);
272 rsrc->track.nr_writers++;
331 struct panfrost_resource *rsrc,
337 panfrost_batch_add_bo_old(batch, rsrc->image.data.bo, access);
339 if (rsrc->image.crc.bo)
340 panfrost_batch_add_bo_old(batch, rsrc->image.crc.bo, access);
342 if (rsrc->separate_stencil)
343 panfrost_batch_add_bo_old(batch, rsrc->separate_stencil->image.data.bo, access);
345 panfrost_batch_update_access(batch, rsrc, false);
350 struct panfrost_resource *rsrc,
356 panfrost_batch_add_bo_old(batch, rsrc->image.data.bo, access);
358 if (rsrc->image.crc.bo)
359 panfrost_batch_add_bo_old(batch, rsrc->image.crc.bo, access);
361 if (rsrc->separate_stencil)
362 panfrost_batch_add_bo_old(batch, rsrc->separate_stencil->image.data.bo, access);
364 panfrost_batch_update_access(batch, rsrc, true);
369 struct panfrost_resource *rsrc,
377 struct hash_entry *writer = _mesa_hash_table_search(ctx->writers, rsrc);
380 rsrc->track.nr_writers--;
389 struct set_entry *ent = _mesa_set_search(batch->resources, rsrc);
395 rsrc->track.nr_users--;
401 panfrost_bo_unreference(rsrc->image.data.bo);
402 rsrc->image.data.bo = newbo;
880 struct panfrost_resource *rsrc,
883 struct hash_entry *entry = _mesa_hash_table_search(ctx->writers, rsrc);
893 struct panfrost_resource *rsrc,
900 if (!_mesa_set_search(batch->resources, rsrc))