Home
last modified time | relevance | path

Searched refs:surf_tmpl (Results 1 - 25 of 37) sorted by relevance

12

/third_party/mesa3d/src/gallium/drivers/freedreno/
H A Dfreedreno_surface.c36 const struct pipe_surface *surf_tmpl) in fd_create_surface()
44 unsigned level = surf_tmpl->u.tex.level; in fd_create_surface()
50 psurf->format = surf_tmpl->format; 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()
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()
35 fd_create_surface(struct pipe_context *pctx, struct pipe_resource *ptex, const struct pipe_surface *surf_tmpl) fd_create_surface() argument
/third_party/mesa3d/src/mesa/main/
H A Drenderbuffer.c542 struct pipe_surface surf_tmpl; in _mesa_regen_renderbuffer_surface() local
543 memset(&surf_tmpl, 0, sizeof(surf_tmpl)); in _mesa_regen_renderbuffer_surface()
544 surf_tmpl.format = surf->format; in _mesa_regen_renderbuffer_surface()
545 surf_tmpl.nr_samples = rb->rtt_nr_samples; in _mesa_regen_renderbuffer_surface()
546 surf_tmpl.u.tex.level = surf->u.tex.level; in _mesa_regen_renderbuffer_surface()
547 surf_tmpl.u.tex.first_layer = surf->u.tex.first_layer; in _mesa_regen_renderbuffer_surface()
548 surf_tmpl.u.tex.last_layer = surf->u.tex.last_layer; in _mesa_regen_renderbuffer_surface()
551 surf = pipe->create_surface(pipe, resource, &surf_tmpl); in _mesa_regen_renderbuffer_surface()
647 struct pipe_surface surf_tmpl; in _mesa_update_renderbuffer_surface() local
[all...]
/third_party/mesa3d/src/gallium/tests/graw/
H A Dclear.c43 struct pipe_surface surf_tmpl; in init() local
84 surf_tmpl.format = templat.format; in init()
85 surf_tmpl.u.tex.level = 0; in init()
86 surf_tmpl.u.tex.first_layer = 0; in init()
87 surf_tmpl.u.tex.last_layer = 0; in init()
88 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init()
H A Dtri-gs.c182 struct pipe_surface surf_tmpl; in init() local
223 surf_tmpl.format = templat.format; in init()
224 surf_tmpl.u.tex.level = 0; in init()
225 surf_tmpl.u.tex.first_layer = 0; in init()
226 surf_tmpl.u.tex.last_layer = 0; in init()
227 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init()
H A Dshader-leak.c175 struct pipe_surface surf_tmpl; in init() local
216 surf_tmpl.format = templat.format; in init()
217 surf_tmpl.u.tex.level = 0; in init()
218 surf_tmpl.u.tex.first_layer = 0; in init()
219 surf_tmpl.u.tex.last_layer = 0; in init()
220 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init()
H A Dquad-sample.c300 struct pipe_surface surf_tmpl; in init() local
341 surf_tmpl.format = templat.format; in init()
342 surf_tmpl.u.tex.level = 0; in init()
343 surf_tmpl.u.tex.first_layer = 0; in init()
344 surf_tmpl.u.tex.last_layer = 0; in init()
345 surf = ctx->create_surface(ctx, rttex, &surf_tmpl); in init()
H A Dtri-instanced.c235 struct pipe_surface surf_tmpl; in init() local
276 surf_tmpl.format = templat.format; in init()
277 surf_tmpl.u.tex.level = 0; in init()
278 surf_tmpl.u.tex.first_layer = 0; in init()
279 surf_tmpl.u.tex.last_layer = 0; in init()
280 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init()
H A Dfs-test.c385 struct pipe_surface surf_tmpl; in init() local
426 surf_tmpl.format = templat.format; in init()
427 surf_tmpl.u.tex.level = 0; in init()
428 surf_tmpl.u.tex.first_layer = 0; in init()
429 surf_tmpl.u.tex.last_layer = 0; in init()
430 surf = ctx->create_surface(ctx, rttex, &surf_tmpl); in init()
H A Dgs-test.c475 struct pipe_surface surf_tmpl; in init() local
516 surf_tmpl.format = templat.format; in init()
517 surf_tmpl.u.tex.level = 0; in init()
518 surf_tmpl.u.tex.first_layer = 0; in init()
519 surf_tmpl.u.tex.last_layer = 0; in init()
520 surf = ctx->create_surface(ctx, rttex, &surf_tmpl); in init()
H A Dvs-test.c373 struct pipe_surface surf_tmpl; in init() local
414 surf_tmpl.format = templat.format; in init()
415 surf_tmpl.u.tex.level = 0; in init()
416 surf_tmpl.u.tex.first_layer = 0; in init()
417 surf_tmpl.u.tex.last_layer = 0; in init()
418 surf = ctx->create_surface(ctx, rttex, &surf_tmpl); in init()
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_surface.c286 const struct pipe_surface *surf_tmpl, in svga_create_surface_view()
307 layer = surf_tmpl->u.tex.first_layer; in svga_create_surface_view()
313 layer = surf_tmpl->u.tex.first_layer; in svga_create_surface_view()
315 nlayers = surf_tmpl->u.tex.last_layer - surf_tmpl->u.tex.first_layer + 1; in svga_create_surface_view()
319 zslice = surf_tmpl->u.tex.first_layer; in svga_create_surface_view()
325 s->base.format = surf_tmpl->format; in svga_create_surface_view()
326 s->base.width = u_minify(pt->width0, surf_tmpl->u.tex.level); in svga_create_surface_view()
327 s->base.height = u_minify(pt->height0, surf_tmpl->u.tex.level); in svga_create_surface_view()
328 s->base.u.tex.level = surf_tmpl in svga_create_surface_view()
284 svga_create_surface_view(struct pipe_context *pipe, struct pipe_resource *pt, const struct pipe_surface *surf_tmpl, boolean clone_resource) svga_create_surface_view() argument
432 svga_create_surface(struct pipe_context *pipe, struct pipe_resource *pt, const struct pipe_surface *surf_tmpl) svga_create_surface() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/i915/
H A Di915_surface.c44 const struct pipe_surface *surf_tmpl,
386 const struct pipe_surface *surf_tmpl, in i915_create_surface_custom()
392 assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer); in i915_create_surface_custom()
394 assert(surf_tmpl->u.tex.first_layer == 0); in i915_create_surface_custom()
404 ps->format = surf_tmpl->format; in i915_create_surface_custom()
405 ps->width = u_minify(width0, surf_tmpl->u.tex.level); in i915_create_surface_custom()
406 ps->height = u_minify(height0, surf_tmpl->u.tex.level); in i915_create_surface_custom()
407 ps->u.tex.level = surf_tmpl->u.tex.level; in i915_create_surface_custom()
408 ps->u.tex.first_layer = surf_tmpl in i915_create_surface_custom()
385 i915_create_surface_custom(struct pipe_context *ctx, struct pipe_resource *pt, const struct pipe_surface *surf_tmpl, unsigned width0, unsigned height0) i915_create_surface_custom() argument
437 i915_create_surface(struct pipe_context *ctx, struct pipe_resource *pt, const struct pipe_surface *surf_tmpl) i915_create_surface() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_surface.c196 const struct pipe_surface *surf_tmpl) in llvmpipe_create_surface()
202 if (util_format_is_depth_or_stencil(surf_tmpl->format)) { in llvmpipe_create_surface()
215 ps->format = surf_tmpl->format; in llvmpipe_create_surface()
217 assert(surf_tmpl->u.tex.level <= pt->last_level); in llvmpipe_create_surface()
218 assert(surf_tmpl->u.tex.first_layer <= surf_tmpl->u.tex.last_layer); in llvmpipe_create_surface()
219 ps->width = u_minify(pt->width0, surf_tmpl->u.tex.level); in llvmpipe_create_surface()
220 ps->height = u_minify(pt->height0, surf_tmpl->u.tex.level); in llvmpipe_create_surface()
221 ps->u.tex.level = surf_tmpl->u.tex.level; in llvmpipe_create_surface()
222 ps->u.tex.first_layer = surf_tmpl in llvmpipe_create_surface()
194 llvmpipe_create_surface(struct pipe_context *pipe, struct pipe_resource *pt, const struct pipe_surface *surf_tmpl) llvmpipe_create_surface() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_texture.c293 const struct pipe_surface *surf_tmpl) in softpipe_create_surface()
302 ps->format = surf_tmpl->format; in softpipe_create_surface()
304 assert(surf_tmpl->u.tex.level <= pt->last_level); in softpipe_create_surface()
305 ps->width = u_minify(pt->width0, surf_tmpl->u.tex.level); in softpipe_create_surface()
306 ps->height = u_minify(pt->height0, surf_tmpl->u.tex.level); in softpipe_create_surface()
307 ps->u.tex.level = surf_tmpl->u.tex.level; in softpipe_create_surface()
308 ps->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in softpipe_create_surface()
309 ps->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in softpipe_create_surface()
316 ps->width = surf_tmpl->u.buf.last_element - surf_tmpl in softpipe_create_surface()
291 softpipe_create_surface(struct pipe_context *pipe, struct pipe_resource *pt, const struct pipe_surface *surf_tmpl) softpipe_create_surface() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/r600/
H A Dr600_blit.c165 struct pipe_surface *zsurf, *cbsurf, surf_tmpl; in r600_blit_decompress_depth() local
172 surf_tmpl.format = texture->resource.b.b.format; in r600_blit_decompress_depth()
173 surf_tmpl.u.tex.level = level; in r600_blit_decompress_depth()
174 surf_tmpl.u.tex.first_layer = layer; in r600_blit_decompress_depth()
175 surf_tmpl.u.tex.last_layer = layer; in r600_blit_decompress_depth()
177 zsurf = ctx->create_surface(ctx, &texture->resource.b.b, &surf_tmpl); in r600_blit_decompress_depth()
179 surf_tmpl.format = flushed_depth_texture->resource.b.b.format; in r600_blit_decompress_depth()
181 &flushed_depth_texture->resource.b.b, &surf_tmpl); in r600_blit_decompress_depth()
213 struct pipe_surface *zsurf, surf_tmpl = {{0}}; in r600_blit_decompress_depth_in_place() local
227 surf_tmpl in r600_blit_decompress_depth_in_place()
356 struct pipe_surface *cbsurf, surf_tmpl; r600_blit_decompress_color() local
[all...]
/third_party/mesa3d/src/gallium/tests/trivial/
H A Dtri.c86 struct pipe_surface surf_tmpl; in init_prog() local
160 surf_tmpl.format = PIPE_FORMAT_B8G8R8A8_UNORM; in init_prog()
161 surf_tmpl.u.tex.level = 0; in init_prog()
162 surf_tmpl.u.tex.first_layer = 0; in init_prog()
163 surf_tmpl.u.tex.last_layer = 0; in init_prog()
169 p->framebuffer.cbufs[0] = p->pipe->create_surface(p->pipe, p->target, &surf_tmpl); in init_prog()
H A Dquad-tex.c92 struct pipe_surface surf_tmpl; in init_prog() local
217 surf_tmpl.format = PIPE_FORMAT_B8G8R8A8_UNORM; /* All drivers support this */ in init_prog()
218 surf_tmpl.u.tex.level = 0; in init_prog()
219 surf_tmpl.u.tex.first_layer = 0; in init_prog()
220 surf_tmpl.u.tex.last_layer = 0; in init_prog()
226 p->framebuffer.cbufs[0] = p->pipe->create_surface(p->pipe, p->target, &surf_tmpl); in init_prog()
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_cb_eglimage.c241 struct pipe_surface *ps, surf_tmpl; in st_egl_image_target_renderbuffer_storage() local
243 u_surface_default_template(&surf_tmpl, stimg.texture); in st_egl_image_target_renderbuffer_storage()
244 surf_tmpl.format = stimg.format; in st_egl_image_target_renderbuffer_storage()
245 surf_tmpl.u.tex.level = stimg.level; in st_egl_image_target_renderbuffer_storage()
246 surf_tmpl.u.tex.first_layer = stimg.layer; in st_egl_image_target_renderbuffer_storage()
247 surf_tmpl.u.tex.last_layer = stimg.layer; in st_egl_image_target_renderbuffer_storage()
248 ps = pipe->create_surface(pipe, stimg.texture, &surf_tmpl); in st_egl_image_target_renderbuffer_storage()
/third_party/mesa3d/src/gallium/drivers/r300/
H A Dr300_blit.c730 struct pipe_surface surf_tmpl; in r300_simple_msaa_resolve() local
733 memset(&surf_tmpl, 0, sizeof(surf_tmpl)); in r300_simple_msaa_resolve()
734 surf_tmpl.format = format; in r300_simple_msaa_resolve()
735 srcsurf = r300_surface(pipe->create_surface(pipe, src, &surf_tmpl)); in r300_simple_msaa_resolve()
737 surf_tmpl.format = format; in r300_simple_msaa_resolve()
738 surf_tmpl.u.tex.level = dst_level; in r300_simple_msaa_resolve()
739 surf_tmpl.u.tex.first_layer = in r300_simple_msaa_resolve()
740 surf_tmpl.u.tex.last_layer = dst_layer; in r300_simple_msaa_resolve()
741 dstsurf = r300_surface(pipe->create_surface(pipe, dst, &surf_tmpl)); in r300_simple_msaa_resolve()
[all...]
H A Dr300_texture.c1195 const struct pipe_surface *surf_tmpl, in r300_create_surface_custom()
1201 unsigned level = surf_tmpl->u.tex.level; in r300_create_surface_custom()
1203 assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer); in r300_create_surface_custom()
1211 surface->base.format = surf_tmpl->format; in r300_create_surface_custom()
1215 surface->base.u.tex.first_layer = surf_tmpl->u.tex.first_layer; in r300_create_surface_custom()
1216 surface->base.u.tex.last_layer = surf_tmpl->u.tex.last_layer; in r300_create_surface_custom()
1226 surf_tmpl->u.tex.first_layer); in r300_create_surface_custom()
1270 const struct pipe_surface *surf_tmpl) in r300_create_surface()
1272 return r300_create_surface_custom(ctx, texture, surf_tmpl, in r300_create_surface()
1193 r300_create_surface_custom(struct pipe_context * ctx, struct pipe_resource* texture, const struct pipe_surface *surf_tmpl, unsigned width0_override, unsigned height0_override) r300_create_surface_custom() argument
1268 r300_create_surface(struct pipe_context * ctx, struct pipe_resource* texture, const struct pipe_surface *surf_tmpl) r300_create_surface() argument
[all...]
H A Dr300_texture.h82 const struct pipe_surface *surf_tmpl,
88 const struct pipe_surface *surf_tmpl);
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_blit.c132 struct pipe_surface surf_tmpl = {{0}}; in si_blit_dbcb_copy() local
154 surf_tmpl.u.tex.level = level; in si_blit_dbcb_copy()
159 surf_tmpl.format = src->buffer.b.b.format; in si_blit_dbcb_copy()
160 surf_tmpl.u.tex.first_layer = layer; in si_blit_dbcb_copy()
161 surf_tmpl.u.tex.last_layer = layer; in si_blit_dbcb_copy()
163 zsurf = sctx->b.create_surface(&sctx->b, &src->buffer.b.b, &surf_tmpl); in si_blit_dbcb_copy()
165 surf_tmpl.format = dst->buffer.b.b.format; in si_blit_dbcb_copy()
166 cbsurf = sctx->b.create_surface(&sctx->b, &dst->buffer.b.b, &surf_tmpl); in si_blit_dbcb_copy()
204 struct pipe_surface *zsurf, surf_tmpl = {{0}}; in si_blit_decompress_zs_planes_in_place() local
217 surf_tmpl in si_blit_decompress_zs_planes_in_place()
493 struct pipe_surface *cbsurf, surf_tmpl; si_blit_decompress_color() local
[all...]
/third_party/mesa3d/src/gallium/auxiliary/driver_noop/
H A Dnoop_state.c104 const struct pipe_surface *surf_tmpl) in noop_create_surface()
113 surface->format = surf_tmpl->format; in noop_create_surface()
117 surface->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in noop_create_surface()
118 surface->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in noop_create_surface()
119 surface->u.tex.level = surf_tmpl->u.tex.level; in noop_create_surface()
102 noop_create_surface(struct pipe_context *ctx, struct pipe_resource *texture, const struct pipe_surface *surf_tmpl) noop_create_surface() argument
/third_party/mesa3d/src/gallium/drivers/panfrost/
H A Dpan_resource.c230 const struct pipe_surface *surf_tmpl) in panfrost_create_surface()
235 pan_legalize_afbc_format(ctx, pan_resource(pt), surf_tmpl->format); in panfrost_create_surface()
243 ps->format = surf_tmpl->format; in panfrost_create_surface()
246 assert(surf_tmpl->u.tex.level <= pt->last_level); in panfrost_create_surface()
247 ps->width = u_minify(pt->width0, surf_tmpl->u.tex.level); in panfrost_create_surface()
248 ps->height = u_minify(pt->height0, surf_tmpl->u.tex.level); in panfrost_create_surface()
249 ps->nr_samples = surf_tmpl->nr_samples; in panfrost_create_surface()
250 ps->u.tex.level = surf_tmpl->u.tex.level; in panfrost_create_surface()
251 ps->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in panfrost_create_surface()
252 ps->u.tex.last_layer = surf_tmpl in panfrost_create_surface()
228 panfrost_create_surface(struct pipe_context *pipe, struct pipe_resource *pt, const struct pipe_surface *surf_tmpl) panfrost_create_surface() argument
[all...]
/third_party/mesa3d/src/gallium/auxiliary/util/
H A Du_debug_image.c140 struct pipe_surface *surface, surf_tmpl; in debug_dump_texture() local
146 u_surface_default_template(&surf_tmpl, texture); in debug_dump_texture()
147 surface = pipe->create_surface(pipe, texture, &surf_tmpl); in debug_dump_texture()

Completed in 18 milliseconds

12