Home
last modified time | relevance | path

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

12

/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_surface.c46 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 …]
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.h147 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()
Dfreedreno_batch_cache.c456 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()
Dfreedreno_gmem.c691 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/
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()
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 …]
Dv3d_resource.c1023 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 …]
Dv3d_resource.h169 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/
Diris_clear.c679 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/
Dvc4_resource.c733 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 …]
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);
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_gmem.c70 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/
Dfd3_gmem.c69 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 …]
Dfd3_emit.c279 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 …]
Dfd3_emit.h40 struct pipe_surface **psurf, int bufs);
/external/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_gmem.c97 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 …]
Dfd6_blitter.c751 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()
Dfd6_blitter.h40 struct fd_ringbuffer *ring, struct pipe_surface *psurf,
Dfd6_emit.c249 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/
Dfd2_gmem.c88 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/
Dlima_resource.c507 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/
Dfd4_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()
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/
Detnaviv_surface.c188 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/
Dst_cb_fbo.c523 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()

12