/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_surface.c | 46 struct pipe_surface *psurf = &surface->base; in fd_create_surface() local 49 pipe_reference_init(&psurf->reference, 1); in fd_create_surface() 50 pipe_resource_reference(&psurf->texture, ptex); in fd_create_surface() 52 psurf->context = pctx; in fd_create_surface() 53 psurf->format = surf_tmpl->format; in fd_create_surface() 54 psurf->width = u_minify(ptex->width0, level); in fd_create_surface() 55 psurf->height = u_minify(ptex->height0, level); in fd_create_surface() 56 psurf->nr_samples = surf_tmpl->nr_samples; in fd_create_surface() 59 psurf->u.buf.first_element = surf_tmpl->u.buf.first_element; in fd_create_surface() 60 psurf->u.buf.last_element = surf_tmpl->u.buf.last_element; in fd_create_surface() [all …]
|
D | freedreno_surface.h | 37 fd_surface(struct pipe_surface *psurf) in fd_surface() argument 39 return (struct fd_surface *)psurf; in fd_surface() 45 void fd_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf);
|
D | freedreno_util.h | 147 pipe_surface_format(struct pipe_surface *psurf) in pipe_surface_format() argument 149 if (!psurf) in pipe_surface_format() 151 return psurf->format; in pipe_surface_format() 155 fd_surface_half_precision(const struct pipe_surface *psurf) in fd_surface_half_precision() argument 159 if (!psurf) in fd_surface_half_precision() 162 format = psurf->format; in fd_surface_half_precision()
|
D | freedreno_batch_cache.c | 456 key_surf(struct key *key, unsigned idx, unsigned pos, struct pipe_surface *psurf) in key_surf() argument 458 key->surf[idx].texture = psurf->texture; in key_surf() 459 key->surf[idx].u = psurf->u; in key_surf() 461 key->surf[idx].samples = MAX2(1, psurf->nr_samples); in key_surf() 462 key->surf[idx].format = psurf->format; in key_surf()
|
D | freedreno_gmem.c | 691 struct pipe_surface *psurf = pfb->cbufs[i]; in fd_gmem_render_tiles() local 692 if (!psurf) in fd_gmem_render_tiles() 694 if (psurf->u.tex.first_layer < psurf->u.tex.last_layer) in fd_gmem_render_tiles()
|
/external/mesa3d/src/gallium/drivers/v3d/ |
D | v3dx_rcl.c | 55 load_general(struct v3d_cl *cl, struct pipe_surface *psurf, int buffer, in load_general() argument 58 struct v3d_surface *surf = v3d_surface(psurf); in load_general() 61 psurf = surf->separate_stencil; in load_general() 62 surf = v3d_surface(psurf); in load_general() 65 struct v3d_resource *rsc = v3d_resource(psurf->texture); in load_general() 68 v3d_layer_offset(&rsc->base, psurf->u.tex.level, in load_general() 69 psurf->u.tex.first_layer + layer); in load_general() 88 &rsc->slices[psurf->u.tex.level]; in load_general() 92 if (psurf->texture->nr_samples > 1) in load_general() 115 struct v3d_cl *cl, struct pipe_surface *psurf, in store_general() argument [all …]
|
D | v3d_resource.c | 1023 struct pipe_surface *psurf = &surface->base; in v3d_create_surface() local 1027 pipe_reference_init(&psurf->reference, 1); in v3d_create_surface() 1028 pipe_resource_reference(&psurf->texture, ptex); in v3d_create_surface() 1030 psurf->context = pctx; in v3d_create_surface() 1031 psurf->format = surf_tmpl->format; in v3d_create_surface() 1032 psurf->width = u_minify(ptex->width0, level); in v3d_create_surface() 1033 psurf->height = u_minify(ptex->height0, level); in v3d_create_surface() 1034 psurf->u.tex.level = level; in v3d_create_surface() 1035 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in v3d_create_surface() 1036 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in v3d_create_surface() [all …]
|
D | v3d_resource.h | 169 v3d_surface(struct pipe_surface *psurf) in v3d_surface() argument 171 return (struct v3d_surface *)psurf; in v3d_surface()
|
/external/mesa3d/src/gallium/drivers/iris/ |
D | iris_clear.c | 679 struct pipe_surface *psurf = cso_fb->zsbuf; in iris_clear() local 681 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1; in iris_clear() 682 box.z = psurf->u.tex.first_layer, in iris_clear() 683 clear_depth_stencil(ice, psurf->texture, psurf->u.tex.level, &box, true, in iris_clear() 692 struct pipe_surface *psurf = cso_fb->cbufs[i]; in iris_clear() local 693 struct iris_surface *isurf = (void *) psurf; in iris_clear() 694 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1, in iris_clear() 695 box.z = psurf->u.tex.first_layer, in iris_clear() 697 clear_color(ice, psurf->texture, psurf->u.tex.level, &box, in iris_clear() 699 convert_clear_color(psurf->format, p_color)); in iris_clear() [all …]
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_resource.c | 733 struct pipe_surface *psurf = &surface->base; in vc4_create_surface() local 736 pipe_reference_init(&psurf->reference, 1); in vc4_create_surface() 737 pipe_resource_reference(&psurf->texture, ptex); in vc4_create_surface() 739 psurf->context = pctx; in vc4_create_surface() 740 psurf->format = surf_tmpl->format; in vc4_create_surface() 741 psurf->width = u_minify(ptex->width0, level); in vc4_create_surface() 742 psurf->height = u_minify(ptex->height0, level); in vc4_create_surface() 743 psurf->u.tex.level = level; in vc4_create_surface() 744 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in vc4_create_surface() 745 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in vc4_create_surface() [all …]
|
D | vc4_job.c | 283 struct pipe_surface *psurf, in vc4_submit_setup_rcl_surface() argument 286 struct vc4_surface *surf = vc4_surface(psurf); in vc4_submit_setup_rcl_surface() 291 struct vc4_resource *rsc = vc4_resource(psurf->texture); in vc4_submit_setup_rcl_surface() 295 if (psurf->texture->nr_samples <= 1) { in vc4_submit_setup_rcl_surface() 305 VC4_SET_FIELD(vc4_rt_format_is_565(psurf->format) ? in vc4_submit_setup_rcl_surface() 325 struct pipe_surface *psurf) in vc4_submit_setup_rcl_render_config_surface() argument 327 struct vc4_surface *surf = vc4_surface(psurf); in vc4_submit_setup_rcl_render_config_surface() 332 struct vc4_resource *rsc = vc4_resource(psurf->texture); in vc4_submit_setup_rcl_render_config_surface() 336 if (psurf->texture->nr_samples <= 1) { in vc4_submit_setup_rcl_render_config_surface() 352 struct pipe_surface *psurf) in vc4_submit_setup_rcl_msaa_surface() argument [all …]
|
D | vc4_resource.h | 90 vc4_surface(struct pipe_surface *psurf) in vc4_surface() argument 92 return (struct vc4_surface *)psurf; in vc4_surface() 112 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() 82 debug_assert(psurf->u.tex.first_layer == psurf->u.tex.last_layer); in emit_mrt() 84 offset = fd_resource_offset(rsc, psurf->u.tex.level, in emit_mrt() 85 psurf->u.tex.first_layer); in emit_mrt() 92 stride = fd_resource_pitch(rsc, psurf->u.tex.level); in emit_mrt() 95 tile_mode = fd_resource_tile_mode(psurf->texture, psurf->u.tex.level); in emit_mrt() 466 struct pipe_surface *psurf, enum a5xx_blit_buf buf) in emit_mem2gmem_surf() argument [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
D | fd3_gmem.c | 69 struct pipe_surface *psurf = bufs[i]; in emit_mrt() local 71 rsc = fd_resource(psurf->texture); in emit_mrt() 72 pformat = psurf->format; in emit_mrt() 88 debug_assert(psurf->u.tex.first_layer == psurf->u.tex.last_layer); in emit_mrt() 90 offset = fd_resource_offset(rsc, psurf->u.tex.level, in emit_mrt() 91 psurf->u.tex.first_layer); in emit_mrt() 101 stride = fd_resource_pitch(rsc, psurf->u.tex.level); 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 | 279 struct pipe_surface **psurf, in fd3_emit_gmem_restore_tex() argument 310 if (!psurf[i]) { in fd3_emit_gmem_restore_tex() 322 struct fd_resource *rsc = fd_resource(psurf[i]->texture); in fd3_emit_gmem_restore_tex() 323 enum pipe_format format = fd_gmem_restore_format(psurf[i]->format); in fd3_emit_gmem_restore_tex() 333 unsigned lvl = psurf[i]->u.tex.level; in fd3_emit_gmem_restore_tex() 335 debug_assert(psurf[i]->u.tex.first_layer == psurf[i]->u.tex.last_layer); in fd3_emit_gmem_restore_tex() 342 OUT_RING(ring, A3XX_TEX_CONST_1_WIDTH(psurf[i]->width) | in fd3_emit_gmem_restore_tex() 343 A3XX_TEX_CONST_1_HEIGHT(psurf[i]->height)); in fd3_emit_gmem_restore_tex() 358 if (psurf[i]) { in fd3_emit_gmem_restore_tex() 359 struct fd_resource *rsc = fd_resource(psurf[i]->texture); in fd3_emit_gmem_restore_tex() [all …]
|
D | fd3_emit.h | 40 struct pipe_surface **psurf, int bufs);
|
/external/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
D | fd6_gmem.c | 97 struct pipe_surface *psurf = pfb->cbufs[i]; in emit_mrt() local 98 enum pipe_format pformat = psurf->format; in emit_mrt() 99 rsc = fd_resource(psurf->texture); in emit_mrt() 104 slice = fd_resource_slice(rsc, psurf->u.tex.level); in emit_mrt() 112 offset = fd_resource_offset(rsc, psurf->u.tex.level, in emit_mrt() 113 psurf->u.tex.first_layer); in emit_mrt() 115 stride = fd_resource_pitch(rsc, psurf->u.tex.level); in emit_mrt() 118 tile_mode = fd_resource_tile_mode(psurf->texture, psurf->u.tex.level); in emit_mrt() 119 max_layer_index = psurf->u.tex.last_layer - psurf->u.tex.first_layer; in emit_mrt() 139 psurf->u.tex.level, psurf->u.tex.first_layer); in emit_mrt() [all …]
|
D | fd6_blitter.c | 751 struct fd_ringbuffer *ring, struct pipe_surface *psurf, in fd6_clear_surface() argument 756 util_dump_resource(stderr, psurf->texture); in fd6_clear_surface() 760 uint32_t nr_samples = fd_resource_nr_samples(psurf->texture); in fd6_clear_surface() 766 emit_clear_color(ring, psurf->format, color); in fd6_clear_surface() 767 emit_blit_setup(ring, psurf->format, false, color); in fd6_clear_surface() 769 for (unsigned i = psurf->u.tex.first_layer; i <= psurf->u.tex.last_layer; i++) { in fd6_clear_surface() 770 emit_blit_dst(ring, psurf->texture, psurf->format, psurf->u.tex.level, i); in fd6_clear_surface()
|
D | fd6_blitter.h | 40 struct fd_ringbuffer *ring, struct pipe_surface *psurf,
|
D | fd6_emit.c | 249 struct pipe_surface *psurf = pfb->cbufs[0]; in fd6_emit_fb_tex() local 250 struct fd_resource *rsc = fd_resource(psurf->texture); in fd6_emit_fb_tex() 252 uint32_t texconst0 = fd6_tex_const_0(psurf->texture, psurf->u.tex.level, in fd6_emit_fb_tex() 253 psurf->format, PIPE_SWIZZLE_X, PIPE_SWIZZLE_Y, in fd6_emit_fb_tex()
|
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
D | fd2_gmem.c | 88 struct pipe_surface *psurf) in emit_gmem2mem_surf() argument 91 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf() 93 fd_resource_offset(rsc, psurf->u.tex.level, psurf->u.tex.first_layer); in emit_gmem2mem_surf() 94 enum pipe_format format = fd_gmem_restore_format(psurf->format); in emit_gmem2mem_surf() 95 uint32_t pitch = fdl2_pitch_pixels(&rsc->layout, psurf->u.tex.level); in emit_gmem2mem_surf() 228 struct pipe_surface *psurf) in emit_mem2gmem_surf() argument 231 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_mem2gmem_surf() 233 fd_resource_offset(rsc, psurf->u.tex.level, psurf->u.tex.first_layer); in emit_mem2gmem_surf() 234 enum pipe_format format = fd_gmem_restore_format(psurf->format); in emit_mem2gmem_surf() 248 A2XX_SQ_TEX_0_PITCH(fdl2_pitch_pixels(&rsc->layout, psurf->u.tex.level))); in emit_mem2gmem_surf() [all …]
|
/external/mesa3d/src/gallium/drivers/lima/ |
D | lima_resource.c | 507 struct pipe_surface *psurf = &surf->base; in lima_surface_create() local 510 pipe_reference_init(&psurf->reference, 1); in lima_surface_create() 511 pipe_resource_reference(&psurf->texture, pres); in lima_surface_create() 513 psurf->context = pctx; in lima_surface_create() 514 psurf->format = surf_tmpl->format; in lima_surface_create() 515 psurf->width = u_minify(pres->width0, level); in lima_surface_create() 516 psurf->height = u_minify(pres->height0, level); in lima_surface_create() 517 psurf->u.tex.level = level; in lima_surface_create() 518 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in lima_surface_create() 519 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in lima_surface_create() [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
D | fd4_gmem.c | 69 struct pipe_surface *psurf = bufs[i]; in emit_mrt() local 70 enum pipe_format pformat = psurf->format; in emit_mrt() 72 rsc = fd_resource(psurf->texture); in emit_mrt() 92 debug_assert(psurf->u.tex.first_layer == psurf->u.tex.last_layer); in emit_mrt() 94 offset = fd_resource_offset(rsc, psurf->u.tex.level, in emit_mrt() 95 psurf->u.tex.first_layer); in emit_mrt() 104 stride = fd_resource_pitch(rsc, psurf->u.tex.level); in emit_mrt() 148 uint32_t base, struct pipe_surface *psurf) in emit_gmem2mem_surf() argument 151 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf() 152 enum pipe_format pformat = psurf->format; in emit_gmem2mem_surf() [all …]
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_surface.c | 188 etna_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf) in etna_surface_destroy() argument 190 pipe_resource_reference(&psurf->texture, NULL); in etna_surface_destroy() 191 pipe_resource_reference(&etna_surface(psurf)->prsc, NULL); in etna_surface_destroy() 192 FREE(psurf); in etna_surface_destroy()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_cb_fbo.c | 523 struct pipe_surface **psurf = in st_update_renderbuffer_surface() local 525 struct pipe_surface *surf = *psurf; in st_update_renderbuffer_surface() 547 pipe_surface_release(pipe, psurf); in st_update_renderbuffer_surface() 549 *psurf = pipe->create_surface(pipe, resource, &surf_tmpl); in st_update_renderbuffer_surface() 551 strb->surface = *psurf; in st_update_renderbuffer_surface()
|