/third_party/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_surface.c | 43 struct pipe_surface *psurf = &surface->base; in fd_create_surface() local 46 pipe_reference_init(&psurf->reference, 1); in fd_create_surface() 47 pipe_resource_reference(&psurf->texture, ptex); in fd_create_surface() 49 psurf->context = pctx; in fd_create_surface() 50 psurf->format = surf_tmpl->format; in fd_create_surface() 51 psurf->width = u_minify(ptex->width0, level); in fd_create_surface() 52 psurf->height = u_minify(ptex->height0, level); in fd_create_surface() 53 psurf->nr_samples = surf_tmpl->nr_samples; in fd_create_surface() 56 psurf->u.buf.first_element = surf_tmpl->u.buf.first_element; in fd_create_surface() 57 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 | 262 pipe_surface_format(struct pipe_surface *psurf) in pipe_surface_format() argument 264 if (!psurf) in pipe_surface_format() 266 return psurf->format; in pipe_surface_format() 270 fd_surface_half_precision(const struct pipe_surface *psurf) in fd_surface_half_precision() argument 274 if (!psurf) in fd_surface_half_precision() 277 format = psurf->format; in fd_surface_half_precision()
|
/third_party/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() 81 load.force_alpha_1 = util_format_has_alpha1(psurf->format); in load_general() 88 &rsc->slices[psurf->u.tex.level]; in load_general() 92 if (psurf->texture->nr_samples > 1) in load_general() [all …]
|
D | v3d_resource.c | 1056 struct pipe_surface *psurf = &surface->base; in v3d_create_surface() local 1060 pipe_reference_init(&psurf->reference, 1); in v3d_create_surface() 1061 pipe_resource_reference(&psurf->texture, ptex); in v3d_create_surface() 1063 psurf->context = pctx; in v3d_create_surface() 1064 psurf->format = surf_tmpl->format; in v3d_create_surface() 1065 psurf->width = u_minify(ptex->width0, level); in v3d_create_surface() 1066 psurf->height = u_minify(ptex->height0, level); in v3d_create_surface() 1067 psurf->u.tex.level = level; in v3d_create_surface() 1068 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in v3d_create_surface() 1069 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in v3d_create_surface() [all …]
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_framebuffer.c | 149 struct pipe_surface *psurf = ctx->fb_state.cbufs[i]; in zink_get_framebuffer_imageless() local 150 if (!psurf) in zink_get_framebuffer_imageless() 151 psurf = ctx->dummy_surface[util_logbase2_ceil(ctx->gfx_pipeline_state.rast_samples+1)]; in zink_get_framebuffer_imageless() 152 struct zink_surface *surface = zink_csurface(psurf); in zink_get_framebuffer_imageless() 153 struct zink_surface *transient = zink_transient_surface(psurf); in zink_get_framebuffer_imageless() 166 struct pipe_surface *psurf = ctx->fb_state.zsbuf; in zink_get_framebuffer_imageless() local 167 struct zink_surface *surface = zink_csurface(psurf); in zink_get_framebuffer_imageless() 168 struct zink_surface *transient = zink_transient_surface(psurf); in zink_get_framebuffer_imageless() 303 struct pipe_surface *psurf = ctx->fb_state.cbufs[i]; in zink_get_framebuffer() local 304 if (psurf) { in zink_get_framebuffer() [all …]
|
D | zink_clear.c | 40 check_3d_layers(struct pipe_surface *psurf) in check_3d_layers() argument 42 if (psurf->texture->target != PIPE_TEXTURE_3D) in check_3d_layers() 49 if (psurf->u.tex.first_layer) in check_3d_layers() 52 if (psurf->u.tex.last_layer - psurf->u.tex.first_layer > 0) in check_3d_layers() 220 struct pipe_surface *psurf = fb->cbufs[i]; in zink_clear() local 230 clear->color.srgb = psurf->format != psurf->texture->format && in zink_clear() 231 … !util_format_is_srgb(psurf->format) && util_format_is_srgb(psurf->texture->format); in zink_clear() 556 struct pipe_surface *psurf = ctx->fb_state.cbufs[i]; in fb_clears_apply_internal() local 559 zink_fb_clear_util_unpack_clear_color(clear, psurf->format, &color); in fb_clears_apply_internal() 562 psurf->u.tex.level, psurf->u.tex.first_layer, in fb_clears_apply_internal() [all …]
|
D | zink_surface.c | 201 wrap_surface(struct pipe_context *pctx, struct pipe_surface *psurf) in wrap_surface() argument 204 csurf->base = *psurf; in wrap_surface() 206 csurf->surf = (struct zink_surface*)psurf; in wrap_surface() 223 struct pipe_surface *psurf = zink_get_surface(zink_context(pctx), pres, templ, &ivci); in zink_create_surface() local 224 if (!psurf) in zink_create_surface() 227 struct zink_ctx_surface *csurf = (struct zink_ctx_surface*)wrap_surface(pctx, psurf); in zink_create_surface() 241 pipe_surface_release(pctx, &psurf); in zink_create_surface() 388 struct pipe_surface *psurf = ctx->base.create_surface(&ctx->base, pres, &surf_templ); in zink_surface_create_null() local 390 return psurf; in zink_surface_create_null()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
D | fd6_gmem.c | 95 struct pipe_surface *psurf = pfb->cbufs[i]; in emit_mrt() local 96 enum pipe_format pformat = psurf->format; in emit_mrt() 97 rsc = fd_resource(psurf->texture); in emit_mrt() 102 slice = fd_resource_slice(rsc, psurf->u.tex.level); in emit_mrt() 103 uint32_t tile_mode = fd_resource_tile_mode(psurf->texture, psurf->u.tex.level); in emit_mrt() 112 fd_resource_offset(rsc, psurf->u.tex.level, psurf->u.tex.first_layer); in emit_mrt() 114 stride = fd_resource_pitch(rsc, psurf->u.tex.level); in emit_mrt() 115 array_stride = fd_resource_layer_stride(rsc, psurf->u.tex.level); in emit_mrt() 118 max_layer_index = psurf->u.tex.last_layer - psurf->u.tex.first_layer; in emit_mrt() 135 fd6_emit_flag_reference(ring, rsc, psurf->u.tex.level, in emit_mrt() [all …]
|
D | fd6_blitter.c | 785 struct pipe_surface *psurf, uint32_t width, uint32_t height, in fd6_clear_surface() argument 790 util_dump_resource(stderr, psurf->texture); in fd6_clear_surface() 794 uint32_t nr_samples = fd_resource_nr_samples(psurf->texture); in fd6_clear_surface() 800 union pipe_color_union clear_color = convert_color(psurf->format, color); in fd6_clear_surface() 802 emit_clear_color(ring, psurf->format, &clear_color); in fd6_clear_surface() 803 emit_blit_setup(ring, psurf->format, false, &clear_color, unknown_8c01); in fd6_clear_surface() 805 for (unsigned i = psurf->u.tex.first_layer; i <= psurf->u.tex.last_layer; in fd6_clear_surface() 807 emit_blit_dst(ring, psurf->texture, psurf->format, psurf->u.tex.level, i); in fd6_clear_surface() 831 uint32_t base, struct pipe_surface *psurf, uint32_t unknown_8c01) in fd6_resolve_tile() argument 836 util_format_get_blocksize(psurf->format); in fd6_resolve_tile() [all …]
|
D | fd6_blitter.h | 44 struct pipe_surface *psurf, uint32_t width, 48 uint32_t base, struct pipe_surface *psurf, uint32_t unknown_8c01) assert_dt;
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_resource.c | 759 struct pipe_surface *psurf = &surface->base; in vc4_create_surface() local 762 pipe_reference_init(&psurf->reference, 1); in vc4_create_surface() 763 pipe_resource_reference(&psurf->texture, ptex); in vc4_create_surface() 765 psurf->context = pctx; in vc4_create_surface() 766 psurf->format = surf_tmpl->format; in vc4_create_surface() 767 psurf->width = u_minify(ptex->width0, level); in vc4_create_surface() 768 psurf->height = u_minify(ptex->height0, level); in vc4_create_surface() 769 psurf->u.tex.level = level; in vc4_create_surface() 770 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in vc4_create_surface() 771 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);
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
D | iris_clear.c | 680 struct pipe_surface *psurf = cso_fb->zsbuf; in iris_clear() local 682 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1; in iris_clear() 683 box.z = psurf->u.tex.first_layer, in iris_clear() 684 clear_depth_stencil(ice, psurf->texture, psurf->u.tex.level, &box, true, in iris_clear() 693 struct pipe_surface *psurf = cso_fb->cbufs[i]; in iris_clear() local 694 struct iris_surface *isurf = (void *) psurf; in iris_clear() 695 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1, in iris_clear() 696 box.z = psurf->u.tex.first_layer, in iris_clear() 698 clear_color(ice, psurf->texture, psurf->u.tex.level, &box, in iris_clear() 700 convert_clear_color(psurf->format, p_color)); in iris_clear() [all …]
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_scene.c | 156 init_scene_texture(struct lp_scene_surface *ssurf, struct pipe_surface *psurf) in init_scene_texture() argument 158 if (!psurf) { in init_scene_texture() 167 if (llvmpipe_resource_is_texture(psurf->texture)) { in init_scene_texture() 168 ssurf->stride = llvmpipe_resource_stride(psurf->texture, in init_scene_texture() 169 psurf->u.tex.level); in init_scene_texture() 170 ssurf->layer_stride = llvmpipe_layer_stride(psurf->texture, in init_scene_texture() 171 psurf->u.tex.level); in init_scene_texture() 172 ssurf->sample_stride = llvmpipe_sample_stride(psurf->texture); in init_scene_texture() 174 ssurf->map = llvmpipe_resource_map(psurf->texture, in init_scene_texture() 175 psurf->u.tex.level, in init_scene_texture() [all …]
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_clear.c | 671 struct pipe_surface *psurf = cso_fb->zsbuf; in crocus_clear() local 672 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1; in crocus_clear() 673 box.z = psurf->u.tex.first_layer; in crocus_clear() 675 clear_depth_stencil(ice, psurf->texture, psurf->u.tex.level, &box, true, in crocus_clear() 689 struct pipe_surface *psurf = cso_fb->cbufs[i]; in crocus_clear() local 690 struct crocus_surface *isurf = (void *) psurf; in crocus_clear() 691 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1, in crocus_clear() 692 box.z = psurf->u.tex.first_layer, in crocus_clear() 694 clear_color(ice, psurf->texture, psurf->u.tex.level, &box, in crocus_clear() 783 struct pipe_surface *psurf, in crocus_clear_render_target() argument [all …]
|
/third_party/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() 96 fd_resource_tile_mode(psurf->texture, psurf->u.tex.level); in emit_mrt() 475 struct pipe_surface *psurf, enum a5xx_blit_buf buf) in emit_mem2gmem_surf() argument [all …]
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
D | fd3_gmem.c | 83 struct pipe_surface *psurf = bufs[i]; in emit_mrt() local 85 rsc = fd_resource(psurf->texture); in emit_mrt() 86 pformat = psurf->format; in emit_mrt() 102 debug_assert(psurf->u.tex.first_layer == psurf->u.tex.last_layer); in emit_mrt() 104 offset = fd_resource_offset(rsc, psurf->u.tex.level, in emit_mrt() 105 psurf->u.tex.first_layer); in emit_mrt() 115 stride = fd_resource_pitch(rsc, psurf->u.tex.level); in emit_mrt() 335 uint32_t base, struct pipe_surface *psurf) in emit_gmem2mem_surf() argument 338 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf() 339 enum pipe_format format = psurf->format; in emit_gmem2mem_surf() [all …]
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
D | fd2_gmem.c | 89 struct pipe_surface *psurf) in emit_gmem2mem_surf() argument 92 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf() 94 fd_resource_offset(rsc, psurf->u.tex.level, psurf->u.tex.first_layer); in emit_gmem2mem_surf() 95 enum pipe_format format = fd_gmem_restore_format(psurf->format); in emit_gmem2mem_surf() 96 uint32_t pitch = fdl2_pitch_pixels(&rsc->layout, psurf->u.tex.level); in emit_gmem2mem_surf() 233 struct pipe_surface *psurf) in emit_mem2gmem_surf() argument 236 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_mem2gmem_surf() 238 fd_resource_offset(rsc, psurf->u.tex.level, psurf->u.tex.first_layer); in emit_mem2gmem_surf() 239 enum pipe_format format = fd_gmem_restore_format(psurf->format); in emit_mem2gmem_surf() 253 fdl2_pitch_pixels(&rsc->layout, psurf->u.tex.level))); in emit_mem2gmem_surf() [all …]
|
/third_party/mesa3d/src/gallium/drivers/lima/ |
D | lima_resource.c | 570 struct pipe_surface *psurf = &surf->base; in lima_surface_create() local 573 pipe_reference_init(&psurf->reference, 1); in lima_surface_create() 574 pipe_resource_reference(&psurf->texture, pres); in lima_surface_create() 576 psurf->context = pctx; in lima_surface_create() 577 psurf->format = surf_tmpl->format; in lima_surface_create() 578 psurf->width = u_minify(pres->width0, level); in lima_surface_create() 579 psurf->height = u_minify(pres->height0, level); in lima_surface_create() 580 psurf->u.tex.level = level; in lima_surface_create() 581 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in lima_surface_create() 582 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in lima_surface_create() [all …]
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_draw.cpp | 390 struct pipe_surface *psurf, in transition_surface_subresources_state() argument 400 start_layer = psurf->u.tex.first_layer; in transition_surface_subresources_state() 401 num_layers = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1; in transition_surface_subresources_state() 404 psurf->u.tex.level, 1, in transition_surface_subresources_state() 406 d3d12_get_format_start_plane(psurf->format), in transition_surface_subresources_state() 407 d3d12_get_format_num_planes(psurf->format), in transition_surface_subresources_state() 721 struct pipe_surface *psurf = ctx->fb.cbufs[i]; in d3d12_draw_vbo() local 722 if (!psurf) in d3d12_draw_vbo() 726 d3d12_surface(psurf)->rgba_texture : psurf->texture; in d3d12_draw_vbo() 727 transition_surface_subresources_state(ctx, psurf, pres, in d3d12_draw_vbo() [all …]
|
D | d3d12_surface.h | 49 d3d12_surface(struct pipe_surface *psurf) in d3d12_surface() argument 51 return (struct d3d12_surface *)psurf; in d3d12_surface()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
D | fd4_gmem.c | 83 struct pipe_surface *psurf = bufs[i]; in emit_mrt() local 84 enum pipe_format pformat = psurf->format; in emit_mrt() 86 rsc = fd_resource(psurf->texture); in emit_mrt() 106 debug_assert(psurf->u.tex.first_layer == psurf->u.tex.last_layer); in emit_mrt() 108 offset = fd_resource_offset(rsc, psurf->u.tex.level, in emit_mrt() 109 psurf->u.tex.first_layer); in emit_mrt() 118 stride = fd_resource_pitch(rsc, psurf->u.tex.level); in emit_mrt() 162 struct pipe_surface *psurf) in emit_gmem2mem_surf() argument 165 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf() 166 enum pipe_format pformat = psurf->format; in emit_gmem2mem_surf() [all …]
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_surface.c | 187 etna_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf) in etna_surface_destroy() argument 189 pipe_resource_reference(&psurf->texture, NULL); in etna_surface_destroy() 190 pipe_resource_reference(&etna_surface(psurf)->prsc, NULL); in etna_surface_destroy() 191 FREE(psurf); in etna_surface_destroy()
|