Home
last modified time | relevance | path

Searched refs:psurf (Results 1 – 25 of 46) sorted by relevance

12

/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_surface.c43 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 …]
Dfreedreno_surface.h37 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);
Dfreedreno_util.h264 pipe_surface_format(struct pipe_surface *psurf) in pipe_surface_format() argument
266 if (!psurf) in pipe_surface_format()
268 return psurf->format; in pipe_surface_format()
272 fd_surface_half_precision(const struct pipe_surface *psurf) in fd_surface_half_precision() argument
276 if (!psurf) in fd_surface_half_precision()
279 format = psurf->format; in fd_surface_half_precision()
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3dx_rcl.c55 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 …]
Dv3d_resource.c1054 struct pipe_surface *psurf = &surface->base; in v3d_create_surface() local
1058 pipe_reference_init(&psurf->reference, 1); in v3d_create_surface()
1059 pipe_resource_reference(&psurf->texture, ptex); in v3d_create_surface()
1061 psurf->context = pctx; in v3d_create_surface()
1062 psurf->format = surf_tmpl->format; in v3d_create_surface()
1063 psurf->width = u_minify(ptex->width0, level); in v3d_create_surface()
1064 psurf->height = u_minify(ptex->height0, level); in v3d_create_surface()
1065 psurf->u.tex.level = level; in v3d_create_surface()
1066 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in v3d_create_surface()
1067 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in v3d_create_surface()
[all …]
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_clear.c640 struct pipe_surface *psurf = cso_fb->zsbuf; in iris_clear() local
642 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1; in iris_clear()
643 box.z = psurf->u.tex.first_layer, in iris_clear()
644 clear_depth_stencil(ice, psurf->texture, psurf->u.tex.level, &box, true, in iris_clear()
653 struct pipe_surface *psurf = cso_fb->cbufs[i]; in iris_clear() local
654 struct iris_surface *isurf = (void *) psurf; in iris_clear()
655 box.depth = psurf->u.tex.last_layer - psurf->u.tex.first_layer + 1, in iris_clear()
656 box.z = psurf->u.tex.first_layer, in iris_clear()
658 clear_color(ice, psurf->texture, psurf->u.tex.level, &box, in iris_clear()
660 convert_clear_color(psurf->format, p_color)); in iris_clear()
[all …]
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_resource.c746 struct pipe_surface *psurf = &surface->base; in vc4_create_surface() local
749 pipe_reference_init(&psurf->reference, 1); in vc4_create_surface()
750 pipe_resource_reference(&psurf->texture, ptex); in vc4_create_surface()
752 psurf->context = pctx; in vc4_create_surface()
753 psurf->format = surf_tmpl->format; in vc4_create_surface()
754 psurf->width = u_minify(ptex->width0, level); in vc4_create_surface()
755 psurf->height = u_minify(ptex->height0, level); in vc4_create_surface()
756 psurf->u.tex.level = level; in vc4_create_surface()
757 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in vc4_create_surface()
758 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in vc4_create_surface()
[all …]
Dvc4_job.c283 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 …]
Dvc4_resource.h90 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/freedreno/a6xx/
Dfd6_gmem.c99 struct pipe_surface *psurf = pfb->cbufs[i]; in emit_mrt() local
100 enum pipe_format pformat = psurf->format; in emit_mrt()
101 rsc = fd_resource(psurf->texture); in emit_mrt()
106 slice = fd_resource_slice(rsc, psurf->u.tex.level); in emit_mrt()
107 uint32_t tile_mode = fd_resource_tile_mode(psurf->texture, psurf->u.tex.level); in emit_mrt()
116 fd_resource_offset(rsc, psurf->u.tex.level, psurf->u.tex.first_layer); in emit_mrt()
118 stride = fd_resource_pitch(rsc, psurf->u.tex.level); in emit_mrt()
119 array_stride = fd_resource_layer_stride(rsc, psurf->u.tex.level); in emit_mrt()
122 max_layer_index = psurf->u.tex.last_layer - psurf->u.tex.first_layer; in emit_mrt()
139 fd6_emit_flag_reference(ring, rsc, psurf->u.tex.level, in emit_mrt()
[all …]
Dfd6_blitter.c785 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 …]
Dfd6_blitter.h44 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/crocus/
Dcrocus_clear.c671 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/
Dfd5_gmem.c69 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()
80 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()
90 stride = fd_resource_pitch(rsc, psurf->u.tex.level); in emit_mrt()
91 size = fd_resource_layer_stride(rsc, psurf->u.tex.level); in emit_mrt()
94 fd_resource_tile_mode(psurf->texture, psurf->u.tex.level); in emit_mrt()
507 struct pipe_surface *psurf, enum a5xx_blit_buf buf) in emit_mem2gmem_surf() argument
[all …]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_scene.c160 init_scene_texture(struct lp_scene_surface *ssurf, struct pipe_surface *psurf) in init_scene_texture() argument
162 if (!psurf) { in init_scene_texture()
171 if (llvmpipe_resource_is_texture(psurf->texture)) { in init_scene_texture()
172 ssurf->stride = llvmpipe_resource_stride(psurf->texture, in init_scene_texture()
173 psurf->u.tex.level); in init_scene_texture()
174 ssurf->layer_stride = llvmpipe_layer_stride(psurf->texture, in init_scene_texture()
175 psurf->u.tex.level); in init_scene_texture()
176 ssurf->sample_stride = llvmpipe_sample_stride(psurf->texture); in init_scene_texture()
178 ssurf->map = llvmpipe_resource_map(psurf->texture, in init_scene_texture()
179 psurf->u.tex.level, in init_scene_texture()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_gmem.c83 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 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/
Dfd2_gmem.c89 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/zink/
Dzink_framebuffer.c157 struct pipe_surface *psurf = ctx->fb_state.cbufs[i]; in zink_get_framebuffer() local
158 if (!psurf || zink_use_dummy_attachments(ctx)) in zink_get_framebuffer()
159 psurf = ctx->dummy_surface[util_logbase2_ceil(ctx->gfx_pipeline_state.rast_samples+1)]; in zink_get_framebuffer()
160 struct zink_surface *surface = zink_csurface(psurf); in zink_get_framebuffer()
161 struct zink_surface *transient = zink_transient_surface(psurf); in zink_get_framebuffer()
173 struct pipe_surface *psurf = ctx->fb_state.zsbuf; in zink_get_framebuffer() local
174 struct zink_surface *surface = zink_csurface(psurf); in zink_get_framebuffer()
175 struct zink_surface *transient = zink_transient_surface(psurf); in zink_get_framebuffer()
Dzink_surface.c244 wrap_surface(struct pipe_context *pctx, struct pipe_surface *psurf) in wrap_surface() argument
247 csurf->base = *psurf; in wrap_surface()
249 csurf->surf = (struct zink_surface*)psurf; in wrap_surface()
266 struct pipe_surface *psurf = NULL; in zink_create_surface() local
272 psurf = &surface->base; in zink_create_surface()
275 psurf = zink_get_surface(zink_context(pctx), pres, templ, &ivci); in zink_create_surface()
276 if (!psurf) in zink_create_surface()
279 struct zink_ctx_surface *csurf = (struct zink_ctx_surface*)wrap_surface(pctx, psurf); in zink_create_surface()
293 pipe_surface_release(pctx, &psurf); in zink_create_surface()
420 struct pipe_surface *psurf = ctx->base.create_surface(&ctx->base, pres, &surf_templ); in zink_surface_create_null() local
[all …]
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_blit.c31 struct pipe_surface *psurf, in lima_pack_blit_cmd() argument
47 struct lima_surface *surf = lima_surface(psurf); in lima_pack_blit_cmd()
48 int level = psurf->u.tex.level; in lima_pack_blit_cmd()
49 unsigned first_layer = psurf->u.tex.first_layer; in lima_pack_blit_cmd()
86 if (util_format_is_depth_or_stencil(psurf->format)) { in lima_pack_blit_cmd()
88 if (psurf->format != PIPE_FORMAT_Z16_UNORM) in lima_pack_blit_cmd()
105 lima_texture_desc_set_res(ctx, td, psurf->texture, level, level, in lima_pack_blit_cmd()
107 td->format = lima_format_get_texel_reload(psurf->format); in lima_pack_blit_cmd()
Dlima_resource.c559 struct pipe_surface *psurf = &surf->base; in lima_surface_create() local
562 pipe_reference_init(&psurf->reference, 1); in lima_surface_create()
563 pipe_resource_reference(&psurf->texture, pres); in lima_surface_create()
565 psurf->context = pctx; in lima_surface_create()
566 psurf->format = surf_tmpl->format; in lima_surface_create()
567 psurf->width = u_minify(pres->width0, level); in lima_surface_create()
568 psurf->height = u_minify(pres->height0, level); in lima_surface_create()
569 psurf->nr_samples = surf_tmpl->nr_samples; in lima_surface_create()
570 psurf->u.tex.level = level; in lima_surface_create()
571 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in lima_surface_create()
[all …]
/third_party/mesa3d/src/mesa/main/
Drenderbuffer.c538 struct pipe_surface **psurf = in _mesa_regen_renderbuffer_surface() local
540 struct pipe_surface *surf = *psurf; in _mesa_regen_renderbuffer_surface()
552 pipe_surface_release(pipe, psurf); in _mesa_regen_renderbuffer_surface()
553 *psurf = surf; in _mesa_regen_renderbuffer_surface()
555 rb->surface = *psurf; in _mesa_regen_renderbuffer_surface()
631 struct pipe_surface **psurf = in _mesa_update_renderbuffer_surface() local
633 struct pipe_surface *surf = *psurf; in _mesa_update_renderbuffer_surface()
657 pipe_surface_release(pipe, psurf); in _mesa_update_renderbuffer_surface()
658 *psurf = surf; in _mesa_update_renderbuffer_surface()
660 rb->surface = *psurf; in _mesa_update_renderbuffer_surface()
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_gmem.c83 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 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()
170 struct pipe_surface *psurf) in emit_gmem2mem_surf() argument
173 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf()
174 enum pipe_format pformat = psurf->format; in emit_gmem2mem_surf()
[all …]
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_surface.h47 d3d12_surface(struct pipe_surface *psurf) in d3d12_surface() argument
49 return (struct d3d12_surface *)psurf; in d3d12_surface()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_surface.c193 etna_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf) in etna_surface_destroy() argument
195 pipe_resource_reference(&psurf->texture, NULL); in etna_surface_destroy()
196 pipe_resource_reference(&etna_surface(psurf)->prsc, NULL); in etna_surface_destroy()
197 FREE(psurf); in etna_surface_destroy()

12