Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_surface.c49 struct pipe_surface *psurf = &surface->base; in fd_create_surface() local
52 pipe_reference_init(&psurf->reference, 1); in fd_create_surface()
53 pipe_resource_reference(&psurf->texture, ptex); in fd_create_surface()
55 psurf->context = pctx; in fd_create_surface()
56 psurf->format = surf_tmpl->format; in fd_create_surface()
57 psurf->width = u_minify(ptex->width0, level); in fd_create_surface()
58 psurf->height = u_minify(ptex->height0, level); in fd_create_surface()
59 psurf->u.tex.level = level; in fd_create_surface()
60 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in fd_create_surface()
61 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in fd_create_surface()
[all …]
Dfreedreno_surface.h44 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);
Dfreedreno_util.h124 pipe_surface_format(struct pipe_surface *psurf) in pipe_surface_format() argument
126 if (!psurf) in pipe_surface_format()
128 return psurf->format; in pipe_surface_format()
132 fd_surface_half_precision(const struct pipe_surface *psurf) in fd_surface_half_precision() argument
136 if (!psurf) in fd_surface_half_precision()
139 format = psurf->format; in fd_surface_half_precision()
Dfreedreno_batch_cache.c383 key_surf(struct key *key, unsigned idx, unsigned pos, struct pipe_surface *psurf) in key_surf() argument
385 key->surf[idx].texture = psurf->texture; in key_surf()
386 key->surf[idx].u = psurf->u; in key_surf()
388 key->surf[idx].format = psurf->format; in key_surf()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_resource.c817 struct pipe_surface *psurf = &surface->base; in vc4_create_surface() local
820 pipe_reference_init(&psurf->reference, 1); in vc4_create_surface()
821 pipe_resource_reference(&psurf->texture, ptex); in vc4_create_surface()
823 psurf->context = pctx; in vc4_create_surface()
824 psurf->format = surf_tmpl->format; in vc4_create_surface()
825 psurf->width = u_minify(ptex->width0, level); in vc4_create_surface()
826 psurf->height = u_minify(ptex->height0, level); in vc4_create_surface()
827 psurf->u.tex.level = level; in vc4_create_surface()
828 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in vc4_create_surface()
829 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in vc4_create_surface()
[all …]
Dvc4_job.c284 struct pipe_surface *psurf, in vc4_submit_setup_rcl_surface() argument
287 struct vc4_surface *surf = vc4_surface(psurf); in vc4_submit_setup_rcl_surface()
292 struct vc4_resource *rsc = vc4_resource(psurf->texture); in vc4_submit_setup_rcl_surface()
296 if (psurf->texture->nr_samples <= 1) { in vc4_submit_setup_rcl_surface()
306 VC4_SET_FIELD(vc4_rt_format_is_565(psurf->format) ? in vc4_submit_setup_rcl_surface()
326 struct pipe_surface *psurf) in vc4_submit_setup_rcl_render_config_surface() argument
328 struct vc4_surface *surf = vc4_surface(psurf); in vc4_submit_setup_rcl_render_config_surface()
333 struct vc4_resource *rsc = vc4_resource(psurf->texture); in vc4_submit_setup_rcl_render_config_surface()
337 if (psurf->texture->nr_samples <= 1) { in vc4_submit_setup_rcl_render_config_surface()
353 struct pipe_surface *psurf) in vc4_submit_setup_rcl_msaa_surface() argument
[all …]
Dvc4_resource.h93 vc4_surface(struct pipe_surface *psurf) in vc4_surface() argument
95 return (struct vc4_surface *)psurf; in vc4_surface()
115 void vc4_dump_surface(struct pipe_surface *psurf);
/external/mesa3d/src/gallium/drivers/vc5/
Dvc5_rcl.c38 load_general(struct vc5_cl *cl, struct pipe_surface *psurf, int buffer) in load_general() argument
40 struct vc5_surface *surf = vc5_surface(psurf); in load_general()
41 struct vc5_resource *rsc = vc5_resource(psurf->texture); in load_general()
76 &rsc->slices[psurf->u.tex.level]; in load_general()
91 struct vc5_cl *cl, struct pipe_surface *psurf, int buffer, in store_general() argument
94 struct vc5_surface *surf = vc5_surface(psurf); in store_general()
95 struct vc5_resource *rsc = vc5_resource(psurf->texture); in store_general()
139 &rsc->slices[psurf->u.tex.level]; in store_general()
206 struct pipe_surface *psurf = job->cbufs[i]; in vc5_rcl_emit_loads() local
207 if (!psurf || (V3D_VERSION < 40 && in vc5_rcl_emit_loads()
[all …]
Dvc5_resource.c653 struct pipe_surface *psurf = &surface->base; in vc5_create_surface() local
661 pipe_reference_init(&psurf->reference, 1); in vc5_create_surface()
662 pipe_resource_reference(&psurf->texture, ptex); in vc5_create_surface()
664 psurf->context = pctx; in vc5_create_surface()
665 psurf->format = surf_tmpl->format; in vc5_create_surface()
666 psurf->width = u_minify(ptex->width0, level); in vc5_create_surface()
667 psurf->height = u_minify(ptex->height0, level); in vc5_create_surface()
668 psurf->u.tex.level = level; in vc5_create_surface()
669 psurf->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in vc5_create_surface()
670 psurf->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in vc5_create_surface()
[all …]
Dvc5_resource.h147 vc5_surface(struct pipe_surface *psurf) in vc5_surface() argument
149 return (struct vc5_surface *)psurf; in vc5_surface()
Dvc5_draw.c571 struct pipe_surface *psurf = vc5->framebuffer.cbufs[i]; in vc5_clear() local
572 struct vc5_surface *surf = vc5_surface(psurf); in vc5_clear()
573 struct vc5_resource *rsc = vc5_resource(psurf->texture); in vc5_clear()
/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()
95 if (!fd_resource_level_linear(psurf->texture, psurf->u.tex.level)) in emit_mrt()
470 struct pipe_surface *psurf, enum a5xx_blit_buf buf) in emit_mem2gmem_surf() argument
474 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_mem2gmem_surf()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_gmem.c72 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()
320 uint32_t base, struct pipe_surface *psurf) in emit_gmem2mem_surf() argument
323 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf()
324 enum pipe_format format = psurf->format; in emit_gmem2mem_surf()
[all …]
Dfd3_emit.c261 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 …]
Dfd3_emit.h42 struct pipe_surface **psurf, int bufs);
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_gmem.c66 struct pipe_surface *psurf) in emit_gmem2mem_surf() argument
69 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf()
70 uint32_t swap = fmt2swap(psurf->format); in emit_gmem2mem_surf()
76 A2XX_RB_COLOR_INFO_FORMAT(fd2_pipe2color(psurf->format))); in emit_gmem2mem_surf()
84 A2XX_RB_COPY_DEST_INFO_FORMAT(fd2_pipe2color(psurf->format)) | in emit_gmem2mem_surf()
184 struct pipe_surface *psurf) in emit_mem2gmem_surf() argument
187 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_mem2gmem_surf()
192 OUT_RING(ring, A2XX_RB_COLOR_INFO_SWAP(fmt2swap(psurf->format)) | in emit_mem2gmem_surf()
194 A2XX_RB_COLOR_INFO_FORMAT(fd2_pipe2color(psurf->format))); in emit_mem2gmem_surf()
196 swiz = fd2_tex_swiz(psurf->format, PIPE_SWIZZLE_X, PIPE_SWIZZLE_Y, in emit_mem2gmem_surf()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_gmem.c72 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()
152 uint32_t base, struct pipe_surface *psurf) in emit_gmem2mem_surf() argument
155 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf()
156 enum pipe_format pformat = psurf->format; in emit_gmem2mem_surf()
[all …]
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_surface.c148 etna_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf) in etna_surface_destroy() argument
150 pipe_resource_reference(&psurf->texture, NULL); in etna_surface_destroy()
151 FREE(psurf); in etna_surface_destroy()
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_eglimage.c165 struct pipe_surface **psurf = in st_egl_image_target_renderbuffer_storage() local
169 pipe_surface_reference(psurf, ps); in st_egl_image_target_renderbuffer_storage()
170 strb->surface = *psurf; in st_egl_image_target_renderbuffer_storage()
Dst_cb_fbo.c457 struct pipe_surface **psurf = in st_update_renderbuffer_surface() local
459 struct pipe_surface *surf = *psurf; in st_update_renderbuffer_surface()
478 pipe_surface_release(pipe, psurf); in st_update_renderbuffer_surface()
480 *psurf = pipe->create_surface(pipe, resource, &surf_tmpl); in st_update_renderbuffer_surface()
482 strb->surface = *psurf; in st_update_renderbuffer_surface()
Dst_manager.c236 struct pipe_surface **psurf = in st_framebuffer_validate() local
240 pipe_surface_reference(psurf, ps); in st_framebuffer_validate()
241 strb->surface = *psurf; in st_framebuffer_validate()
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_context.c228 struct pipe_surface *psurf) in virgl_surface_destroy() argument
231 struct virgl_surface *surf = virgl_surface(psurf); in virgl_surface_destroy()