/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_resource.c | 42 struct pipe_resource *prsc = &rsc->base.b; in vc4_resource_bo_alloc() local 43 struct pipe_screen *pscreen = prsc->screen; in vc4_resource_bo_alloc() 53 rsc->cube_map_stride * (prsc->array_size - 1)); in vc4_resource_bo_alloc() 59 rsc->cube_map_stride * (prsc->array_size - 1), in vc4_resource_bo_alloc() 128 struct pipe_resource *prsc, in vc4_get_temp_resource() argument 134 temp_setup.target = prsc->target; in vc4_get_temp_resource() 135 temp_setup.format = prsc->format; in vc4_get_temp_resource() 146 struct pipe_resource *prsc, in vc4_resource_transfer_map() argument 152 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_resource_transfer_map() 155 enum pipe_format format = prsc->format; in vc4_resource_transfer_map() [all …]
|
D | vc4_state.c | 553 vc4_create_sampler_view(struct pipe_context *pctx, struct pipe_resource *prsc, in vc4_create_sampler_view() argument 557 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_create_sampler_view() 564 pipe_reference(NULL, &prsc->reference); in vc4_create_sampler_view() 576 struct vc4_resource *shadow_parent = vc4_resource(prsc); in vc4_create_sampler_view() 585 prsc = vc4_resource_create(pctx->screen, &tmpl); in vc4_create_sampler_view() 586 if (!prsc) { in vc4_create_sampler_view() 590 rsc = vc4_resource(prsc); in vc4_create_sampler_view() 591 clone = vc4_resource(prsc); in vc4_create_sampler_view() 600 so->base.texture = prsc; in vc4_create_sampler_view() 615 VC4_SET_FIELD(prsc->height0 & 2047, VC4_TEX_P1_HEIGHT) | in vc4_create_sampler_view() [all …]
|
D | vc4_context.c | 70 vc4_invalidate_resource(struct pipe_context *pctx, struct pipe_resource *prsc) in vc4_invalidate_resource() argument 73 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_invalidate_resource() 78 prsc); in vc4_invalidate_resource() 83 if (job->key.zsbuf && job->key.zsbuf->texture == prsc) in vc4_invalidate_resource()
|
D | vc4_draw.c | 341 struct pipe_resource *prsc; in vc4_draw_vbo() local 343 prsc = vc4_get_shadow_index_buffer(pctx, &vc4->indexbuf, in vc4_draw_vbo() 348 prsc = NULL; in vc4_draw_vbo() 352 &offset, &prsc); in vc4_draw_vbo() 354 prsc = vc4->indexbuf.buffer; in vc4_draw_vbo() 357 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_draw_vbo() 372 pipe_resource_reference(&prsc, NULL); in vc4_draw_vbo()
|
D | vc4_resource.h | 100 vc4_resource(struct pipe_resource *prsc) in vc4_resource() argument 102 return (struct vc4_resource *)prsc; in vc4_resource()
|
D | vc4_job.c | 97 struct pipe_resource *prsc) in vc4_flush_jobs_writing_resource() argument 100 prsc); in vc4_flush_jobs_writing_resource() 109 struct pipe_resource *prsc) in vc4_flush_jobs_reading_resource() argument 111 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_flush_jobs_reading_resource() 113 vc4_flush_jobs_writing_resource(vc4, prsc); in vc4_flush_jobs_reading_resource()
|
D | vc4_blit.c | 31 struct pipe_resource *prsc, unsigned level) in vc4_get_blit_surface() argument 36 tmpl.format = prsc->format; in vc4_get_blit_surface() 41 return pctx->create_surface(pctx, prsc, &tmpl); in vc4_get_blit_surface()
|
D | vc4_context.h | 482 struct pipe_resource *prsc); 484 struct pipe_resource *prsc);
|
/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_resource.c | 52 fd_invalidate_resource(struct fd_context *ctx, struct pipe_resource *prsc) in fd_invalidate_resource() argument 63 if (ctx->constbuf[PIPE_SHADER_VERTEX].cb[i].buffer == prsc) in fd_invalidate_resource() 65 if (ctx->constbuf[PIPE_SHADER_FRAGMENT].cb[i].buffer == prsc) in fd_invalidate_resource() 71 if (ctx->vtx.vertexbuf.vb[i].buffer == prsc) in fd_invalidate_resource() 76 if (ctx->indexbuf.buffer == prsc) in fd_invalidate_resource() 81 if (ctx->verttex.textures[i] && (ctx->verttex.textures[i]->texture == prsc)) in fd_invalidate_resource() 85 if (ctx->fragtex.textures[i] && (ctx->fragtex.textures[i]->texture == prsc)) in fd_invalidate_resource() 133 struct pipe_resource *prsc = &rsc->base.b; in fd_try_shadow_resource() local 136 if (prsc->next) in fd_try_shadow_resource() 143 prsc->format, prsc->target, prsc->nr_samples, in fd_try_shadow_resource() [all …]
|
D | freedreno_context.c | 178 struct pipe_resource *prsc = pipe_buffer_create(pctx->screen, in create_solid_vertexbuf() local 180 pipe_buffer_write(pctx, prsc, 0, in create_solid_vertexbuf() 182 return prsc; in create_solid_vertexbuf() 188 struct pipe_resource *prsc = pipe_buffer_create(pctx->screen, in create_blit_texcoord_vertexbuf() local 190 return prsc; in create_blit_texcoord_vertexbuf()
|
D | freedreno_query_hw.c | 245 struct fd_resource *rsc = fd_resource(period->end->prsc); in fd_hw_get_query_result() 277 assert(start->prsc == end->prsc); in fd_hw_get_query_result() 280 struct fd_resource *rsc = fd_resource(start->prsc); in fd_hw_get_query_result() 349 samp->prsc = NULL; in fd_hw_sample_init() 370 pipe_resource_reference(&samp->prsc, batch->query_buf); in fd_hw_sample_init() 378 pipe_resource_reference(&samp->prsc, NULL); in __fd_hw_sample_destroy()
|
D | freedreno_draw.c | 43 resource_read(struct fd_batch *batch, struct pipe_resource *prsc) in resource_read() argument 45 if (!prsc) in resource_read() 47 fd_batch_resource_used(batch, fd_resource(prsc), false); in resource_read() 51 resource_written(struct fd_batch *batch, struct pipe_resource *prsc) in resource_written() argument 53 if (!prsc) in resource_written() 55 fd_batch_resource_used(batch, fd_resource(prsc), true); in resource_written()
|
D | freedreno_state.c | 339 struct pipe_resource *prsc, unsigned buffer_offset, in fd_create_stream_output_target() argument 343 struct fd_resource *rsc = fd_resource(prsc); in fd_create_stream_output_target() 350 pipe_resource_reference(&target->buffer, prsc); in fd_create_stream_output_target()
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_resource.c | 108 struct pipe_resource *prsc = &rsc->base; in setup_miptree() local 110 unsigned width = prsc->width0; in setup_miptree() 111 unsigned height = prsc->height0; in setup_miptree() 112 unsigned depth = prsc->depth0; in setup_miptree() 114 for (level = 0; level <= prsc->last_level; level++) { in setup_miptree() 121 mip->stride = util_format_get_stride(prsc->format, mip->padded_width); in setup_miptree() 123 mip->layer_stride = mip->stride * util_format_get_nblocksy(prsc->format, mip->padded_height); in setup_miptree() 124 mip->size = prsc->array_size * mip->layer_stride; in setup_miptree() 281 etna_resource_destroy(struct pipe_screen *pscreen, struct pipe_resource *prsc) in etna_resource_destroy() argument 283 struct etna_resource *rsc = etna_resource(prsc); in etna_resource_destroy() [all …]
|
D | etnaviv_resource.h | 115 etna_resource_used(struct etna_context *ctx, struct pipe_resource *prsc, 122 resource_read(struct etna_context *ctx, struct pipe_resource *prsc) in resource_read() argument 124 etna_resource_used(ctx, prsc, ETNA_PENDING_READ); in resource_read() 128 resource_written(struct etna_context *ctx, struct pipe_resource *prsc) in resource_written() argument 130 etna_resource_used(ctx, prsc, ETNA_PENDING_WRITE); in resource_written() 139 struct etna_resource *prsc);
|
D | etnaviv_transfer.c | 123 etna_transfer_map(struct pipe_context *pctx, struct pipe_resource *prsc, in etna_transfer_map() argument 130 struct etna_resource *rsc = etna_resource(prsc); in etna_transfer_map() 133 enum pipe_format format = prsc->format; in etna_transfer_map() 143 pipe_resource_reference(&ptrans->resource, prsc); in etna_transfer_map() 148 assert(level <= prsc->last_level); in etna_transfer_map() 172 if (prsc->depth0 > 1) { in etna_transfer_map() 178 struct pipe_resource templ = *prsc; in etna_transfer_map() 188 etna_copy_resource(pctx, trans->rsc, prsc, level, trans->rsc->last_level); in etna_transfer_map() 257 util_format_is_compressed(prsc->format)); in etna_transfer_map() 285 etna_compute_offset(prsc->format, box, res_level->stride, in etna_transfer_map()
|
D | etnaviv_texture.c | 149 etna_create_sampler_view(struct pipe_context *pctx, struct pipe_resource *prsc, in etna_create_sampler_view() argument 153 struct etna_resource *res = etna_resource(prsc); in etna_create_sampler_view() 163 struct pipe_resource templat = *prsc; in etna_create_sampler_view() 179 pipe_reference(NULL, &prsc->reference); in etna_create_sampler_view() 180 sv->base.texture = prsc; in etna_create_sampler_view()
|
D | etnaviv_surface.c | 41 etna_create_surface(struct pipe_context *pctx, struct pipe_resource *prsc, in etna_create_surface() argument 45 struct etna_resource *rsc = etna_resource(prsc); in etna_create_surface()
|
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
D | fd3_texture.c | 214 fd3_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, in fd3_sampler_view_create() argument 218 struct fd_resource *rsc = fd_resource(prsc); in fd3_sampler_view_create() 226 pipe_reference(NULL, &prsc->reference); in fd3_sampler_view_create() 227 so->base.texture = prsc; in fd3_sampler_view_create() 232 A3XX_TEX_CONST_0_TYPE(tex_type(prsc->target)) | in fd3_sampler_view_create() 237 if (prsc->target == PIPE_BUFFER || util_format_is_pure_integer(cso->format)) in fd3_sampler_view_create() 242 if (prsc->target == PIPE_BUFFER) { in fd3_sampler_view_create() 257 A3XX_TEX_CONST_1_WIDTH(u_minify(prsc->width0, lvl)) | in fd3_sampler_view_create() 258 A3XX_TEX_CONST_1_HEIGHT(u_minify(prsc->height0, lvl)); in fd3_sampler_view_create() 263 switch (prsc->target) { in fd3_sampler_view_create() [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
D | fd2_texture.c | 127 fd2_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, in fd2_sampler_view_create() argument 131 struct fd_resource *rsc = fd_resource(prsc); in fd2_sampler_view_create() 137 pipe_reference(NULL, &prsc->reference); in fd2_sampler_view_create() 138 so->base.texture = prsc; in fd2_sampler_view_create() 146 A2XX_SQ_TEX_2_HEIGHT(prsc->height0 - 1) | in fd2_sampler_view_create() 147 A2XX_SQ_TEX_2_WIDTH(prsc->width0 - 1); in fd2_sampler_view_create()
|
D | fd2_context.c | 62 struct pipe_resource *prsc = pipe_buffer_create(pctx->screen, in create_solid_vertexbuf() local 64 pipe_buffer_write(pctx, prsc, 0, in create_solid_vertexbuf() 66 return prsc; in create_solid_vertexbuf()
|
D | fd2_emit.h | 40 struct pipe_resource *prsc; member
|
D | fd2_draw.c | 73 bufs[i].prsc = vb->buffer; in emit_vertexbufs() 141 { .prsc = fd2_ctx->solid_vertexbuf, .size = 48 }, in fd2_clear()
|
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
D | fd4_texture.c | 222 fd4_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, in fd4_sampler_view_create() argument 226 struct fd_resource *rsc = fd_resource(prsc); in fd4_sampler_view_create() 234 pipe_reference(NULL, &prsc->reference); in fd4_sampler_view_create() 235 so->base.texture = prsc; in fd4_sampler_view_create() 271 A4XX_TEX_CONST_1_WIDTH(u_minify(prsc->width0, lvl)) | in fd4_sampler_view_create() 272 A4XX_TEX_CONST_1_HEIGHT(u_minify(prsc->height0, lvl)); in fd4_sampler_view_create() 296 A4XX_TEX_CONST_3_DEPTH(u_minify(prsc->depth0, lvl)) | in fd4_sampler_view_create()
|
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
D | fd5_texture.c | 220 fd5_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, in fd5_sampler_view_create() argument 224 struct fd_resource *rsc = fd_resource(prsc); in fd5_sampler_view_create() 232 pipe_reference(NULL, &prsc->reference); in fd5_sampler_view_create() 233 so->base.texture = prsc; in fd5_sampler_view_create() 268 A5XX_TEX_CONST_1_WIDTH(u_minify(prsc->width0, lvl)) | in fd5_sampler_view_create() 269 A5XX_TEX_CONST_1_HEIGHT(u_minify(prsc->height0, lvl)); in fd5_sampler_view_create() 308 A5XX_TEX_CONST_5_DEPTH(u_minify(prsc->depth0, lvl)); in fd5_sampler_view_create()
|