/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_surface.c | 50 struct pipe_surface *psurf = &surface->base; in fd_create_surface() local 53 pipe_reference_init(&psurf->reference, 1); in fd_create_surface() 54 pipe_resource_reference(&psurf->texture, ptex); in fd_create_surface() 56 psurf->context = pctx; in fd_create_surface() 57 psurf->format = surf_tmpl->format; in fd_create_surface() 58 psurf->width = u_minify(ptex->width0, level); in fd_create_surface() 59 psurf->height = u_minify(ptex->height0, level); in fd_create_surface() 60 psurf->u.tex.level = level; in fd_create_surface() 61 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in fd_create_surface() 62 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in fd_create_surface() [all …]
|
D | freedreno_surface.h | 44 fd_surface(struct pipe_surface *psurf) in fd_surface() argument 46 return (struct fd_surface *)psurf; in fd_surface() 52 void fd_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf);
|
D | freedreno_util.h | 120 pipe_surface_format(struct pipe_surface *psurf) in pipe_surface_format() argument 122 if (!psurf) in pipe_surface_format() 124 return psurf->format; in pipe_surface_format() 128 fd_surface_half_precision(const struct pipe_surface *psurf) in fd_surface_half_precision() argument 132 if (!psurf) in fd_surface_half_precision() 135 format = psurf->format; in fd_surface_half_precision()
|
D | freedreno_batch_cache.c | 358 key_surf(struct key *key, unsigned idx, unsigned pos, struct pipe_surface *psurf) in key_surf() argument 360 key->surf[idx].texture = psurf->texture; in key_surf() 361 key->surf[idx].u = psurf->u; in key_surf() 363 key->surf[idx].format = psurf->format; in key_surf()
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_resource.c | 643 struct pipe_surface *psurf = &surface->base; in vc4_create_surface() local 646 pipe_reference_init(&psurf->reference, 1); in vc4_create_surface() 647 pipe_resource_reference(&psurf->texture, ptex); in vc4_create_surface() 649 psurf->context = pctx; in vc4_create_surface() 650 psurf->format = surf_tmpl->format; in vc4_create_surface() 651 psurf->width = u_minify(ptex->width0, level); in vc4_create_surface() 652 psurf->height = u_minify(ptex->height0, level); in vc4_create_surface() 653 psurf->u.tex.level = level; in vc4_create_surface() 654 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in vc4_create_surface() 655 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in vc4_create_surface() [all …]
|
D | vc4_job.c | 269 struct pipe_surface *psurf, in vc4_submit_setup_rcl_surface() argument 272 struct vc4_surface *surf = vc4_surface(psurf); in vc4_submit_setup_rcl_surface() 277 struct vc4_resource *rsc = vc4_resource(psurf->texture); in vc4_submit_setup_rcl_surface() 281 if (psurf->texture->nr_samples <= 1) { in vc4_submit_setup_rcl_surface() 291 VC4_SET_FIELD(vc4_rt_format_is_565(psurf->format) ? in vc4_submit_setup_rcl_surface() 311 struct pipe_surface *psurf) in vc4_submit_setup_rcl_render_config_surface() argument 313 struct vc4_surface *surf = vc4_surface(psurf); in vc4_submit_setup_rcl_render_config_surface() 318 struct vc4_resource *rsc = vc4_resource(psurf->texture); in vc4_submit_setup_rcl_render_config_surface() 322 if (psurf->texture->nr_samples <= 1) { in vc4_submit_setup_rcl_render_config_surface() 338 struct pipe_surface *psurf) in vc4_submit_setup_rcl_msaa_surface() argument [all …]
|
D | vc4_resource.h | 106 vc4_surface(struct pipe_surface *psurf) in vc4_surface() argument 108 return (struct vc4_surface *)psurf; in vc4_surface() 127 void vc4_dump_surface(struct pipe_surface *psurf);
|
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
D | fd5_gmem.c | 70 struct pipe_surface *psurf = bufs[i]; in emit_mrt() local 71 enum pipe_format pformat = psurf->format; in emit_mrt() 73 rsc = fd_resource(psurf->texture); in emit_mrt() 75 slice = fd_resource_slice(rsc, psurf->u.tex.level); in emit_mrt() 80 debug_assert(psurf->u.tex.first_layer == psurf->u.tex.last_layer); in emit_mrt() 82 offset = fd_resource_offset(rsc, psurf->u.tex.level, in emit_mrt() 83 psurf->u.tex.first_layer); in emit_mrt() 288 struct pipe_surface *psurf, enum a5xx_blit_buf buf) in emit_mem2gmem_surf() argument 292 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_mem2gmem_surf() 295 debug_assert(psurf->u.tex.first_layer == psurf->u.tex.last_layer); in emit_mem2gmem_surf() [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
D | fd3_gmem.c | 72 struct pipe_surface *psurf = bufs[i]; in emit_mrt() local 74 rsc = fd_resource(psurf->texture); in emit_mrt() 75 pformat = psurf->format; in emit_mrt() 85 slice = fd_resource_slice(rsc, psurf->u.tex.level); in emit_mrt() 93 debug_assert(psurf->u.tex.first_layer == psurf->u.tex.last_layer); in emit_mrt() 95 offset = fd_resource_offset(rsc, psurf->u.tex.level, in emit_mrt() 96 psurf->u.tex.first_layer); in emit_mrt() 314 uint32_t base, struct pipe_surface *psurf) in emit_gmem2mem_surf() argument 317 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf() 318 enum pipe_format format = psurf->format; in emit_gmem2mem_surf() [all …]
|
D | fd3_emit.c | 261 struct pipe_surface **psurf, in fd3_emit_gmem_restore_tex() argument 292 if (!psurf[i]) { in fd3_emit_gmem_restore_tex() 304 struct fd_resource *rsc = fd_resource(psurf[i]->texture); in fd3_emit_gmem_restore_tex() 305 enum pipe_format format = fd_gmem_restore_format(psurf[i]->format); in fd3_emit_gmem_restore_tex() 315 unsigned lvl = psurf[i]->u.tex.level; in fd3_emit_gmem_restore_tex() 318 debug_assert(psurf[i]->u.tex.first_layer == psurf[i]->u.tex.last_layer); in fd3_emit_gmem_restore_tex() 325 A3XX_TEX_CONST_1_WIDTH(psurf[i]->width) | in fd3_emit_gmem_restore_tex() 326 A3XX_TEX_CONST_1_HEIGHT(psurf[i]->height)); in fd3_emit_gmem_restore_tex() 341 if (psurf[i]) { in fd3_emit_gmem_restore_tex() 342 struct fd_resource *rsc = fd_resource(psurf[i]->texture); in fd3_emit_gmem_restore_tex() [all …]
|
D | fd3_emit.h | 42 struct pipe_surface **psurf, int bufs);
|
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
D | fd2_gmem.c | 60 struct pipe_surface *psurf) in emit_gmem2mem_surf() argument 63 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf() 64 uint32_t swap = fmt2swap(psurf->format); in emit_gmem2mem_surf() 70 A2XX_RB_COLOR_INFO_FORMAT(fd2_pipe2color(psurf->format))); in emit_gmem2mem_surf() 78 A2XX_RB_COPY_DEST_INFO_FORMAT(fd2_pipe2color(psurf->format)) | in emit_gmem2mem_surf() 178 struct pipe_surface *psurf) in emit_mem2gmem_surf() argument 181 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_mem2gmem_surf() 186 OUT_RING(ring, A2XX_RB_COLOR_INFO_SWAP(fmt2swap(psurf->format)) | in emit_mem2gmem_surf() 188 A2XX_RB_COLOR_INFO_FORMAT(fd2_pipe2color(psurf->format))); in emit_mem2gmem_surf() 190 swiz = fd2_tex_swiz(psurf->format, PIPE_SWIZZLE_X, PIPE_SWIZZLE_Y, in emit_mem2gmem_surf() [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
D | fd4_gmem.c | 72 struct pipe_surface *psurf = bufs[i]; in emit_mrt() local 73 enum pipe_format pformat = psurf->format; in emit_mrt() 75 rsc = fd_resource(psurf->texture); in emit_mrt() 87 slice = fd_resource_slice(rsc, psurf->u.tex.level); in emit_mrt() 96 debug_assert(psurf->u.tex.first_layer == psurf->u.tex.last_layer); in emit_mrt() 98 offset = fd_resource_offset(rsc, psurf->u.tex.level, in emit_mrt() 99 psurf->u.tex.first_layer); in emit_mrt() 151 uint32_t base, struct pipe_surface *psurf) in emit_gmem2mem_surf() argument 154 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf() 155 enum pipe_format pformat = psurf->format; in emit_gmem2mem_surf() [all …]
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_surface.c | 141 etna_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf) in etna_surface_destroy() argument 143 pipe_resource_reference(&psurf->texture, NULL); in etna_surface_destroy() 144 FREE(psurf); in etna_surface_destroy()
|
/external/mesa3d/src/gallium/drivers/virgl/ |
D | virgl_context.c | 227 struct pipe_surface *psurf) in virgl_surface_destroy() argument 230 struct virgl_surface *surf = virgl_surface(psurf); in virgl_surface_destroy()
|