/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_surface.c | 130 const struct pipe_surface *surf_tmpl) in llvmpipe_create_surface() argument 136 if (util_format_is_depth_or_stencil(surf_tmpl->format)) { in llvmpipe_create_surface() 149 ps->format = surf_tmpl->format; in llvmpipe_create_surface() 151 assert(surf_tmpl->u.tex.level <= pt->last_level); in llvmpipe_create_surface() 152 assert(surf_tmpl->u.tex.first_layer <= surf_tmpl->u.tex.last_layer); in llvmpipe_create_surface() 153 ps->width = u_minify(pt->width0, surf_tmpl->u.tex.level); in llvmpipe_create_surface() 154 ps->height = u_minify(pt->height0, surf_tmpl->u.tex.level); in llvmpipe_create_surface() 155 ps->u.tex.level = surf_tmpl->u.tex.level; in llvmpipe_create_surface() 156 ps->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in llvmpipe_create_surface() 157 ps->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in llvmpipe_create_surface() [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_surface.c | 39 const struct pipe_surface *surf_tmpl) in fd_create_surface() argument 47 debug_assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer); in fd_create_surface() 50 unsigned level = surf_tmpl->u.tex.level; in fd_create_surface() 56 psurf->format = surf_tmpl->format; 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()
|
/external/mesa3d/src/gallium/tests/graw/ |
D | clear.c | 43 struct pipe_surface surf_tmpl; in init() local 85 surf_tmpl.format = templat.format; in init() 86 surf_tmpl.u.tex.level = 0; in init() 87 surf_tmpl.u.tex.first_layer = 0; in init() 88 surf_tmpl.u.tex.last_layer = 0; in init() 89 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init()
|
D | tri-gs.c | 177 struct pipe_surface surf_tmpl; in init() local 219 surf_tmpl.format = templat.format; in init() 220 surf_tmpl.u.tex.level = 0; in init() 221 surf_tmpl.u.tex.first_layer = 0; in init() 222 surf_tmpl.u.tex.last_layer = 0; in init() 223 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init()
|
D | shader-leak.c | 170 struct pipe_surface surf_tmpl; in init() local 212 surf_tmpl.format = templat.format; in init() 213 surf_tmpl.u.tex.level = 0; in init() 214 surf_tmpl.u.tex.first_layer = 0; in init() 215 surf_tmpl.u.tex.last_layer = 0; in init() 216 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init()
|
D | tri-instanced.c | 228 struct pipe_surface surf_tmpl; in init() local 270 surf_tmpl.format = templat.format; in init() 271 surf_tmpl.u.tex.level = 0; in init() 272 surf_tmpl.u.tex.first_layer = 0; in init() 273 surf_tmpl.u.tex.last_layer = 0; in init() 274 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init()
|
D | quad-sample.c | 296 struct pipe_surface surf_tmpl; in init() local 338 surf_tmpl.format = templat.format; in init() 339 surf_tmpl.u.tex.level = 0; in init() 340 surf_tmpl.u.tex.first_layer = 0; in init() 341 surf_tmpl.u.tex.last_layer = 0; in init() 342 surf = ctx->create_surface(ctx, rttex, &surf_tmpl); in init()
|
D | fs-test.c | 381 struct pipe_surface surf_tmpl; in init() local 423 surf_tmpl.format = templat.format; in init() 424 surf_tmpl.u.tex.level = 0; in init() 425 surf_tmpl.u.tex.first_layer = 0; in init() 426 surf_tmpl.u.tex.last_layer = 0; in init() 427 surf = ctx->create_surface(ctx, rttex, &surf_tmpl); in init()
|
D | vs-test.c | 370 struct pipe_surface surf_tmpl; in init() local 412 surf_tmpl.format = templat.format; in init() 413 surf_tmpl.u.tex.level = 0; in init() 414 surf_tmpl.u.tex.first_layer = 0; in init() 415 surf_tmpl.u.tex.last_layer = 0; in init() 416 surf = ctx->create_surface(ctx, rttex, &surf_tmpl); in init()
|
D | gs-test.c | 472 struct pipe_surface surf_tmpl; in init() local 514 surf_tmpl.format = templat.format; in init() 515 surf_tmpl.u.tex.level = 0; in init() 516 surf_tmpl.u.tex.first_layer = 0; in init() 517 surf_tmpl.u.tex.last_layer = 0; in init() 518 surf = ctx->create_surface(ctx, rttex, &surf_tmpl); in init()
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_surface.c | 254 const struct pipe_surface *surf_tmpl, in svga_create_surface_view() argument 275 layer = surf_tmpl->u.tex.first_layer; in svga_create_surface_view() 280 layer = surf_tmpl->u.tex.first_layer; in svga_create_surface_view() 282 nlayers = surf_tmpl->u.tex.last_layer - surf_tmpl->u.tex.first_layer + 1; in svga_create_surface_view() 286 zslice = surf_tmpl->u.tex.first_layer; in svga_create_surface_view() 292 s->base.format = surf_tmpl->format; in svga_create_surface_view() 293 s->base.width = u_minify(pt->width0, surf_tmpl->u.tex.level); in svga_create_surface_view() 294 s->base.height = u_minify(pt->height0, surf_tmpl->u.tex.level); in svga_create_surface_view() 295 s->base.u.tex.level = surf_tmpl->u.tex.level; in svga_create_surface_view() 296 s->base.u.tex.first_layer = surf_tmpl->u.tex.first_layer; in svga_create_surface_view() [all …]
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_surface.c | 45 const struct pipe_surface *surf_tmpl, 356 const struct pipe_surface *surf_tmpl, in i915_create_surface_custom() argument 362 assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer); in i915_create_surface_custom() 365 assert(surf_tmpl->u.tex.first_layer == 0); in i915_create_surface_custom() 372 ps->format = surf_tmpl->format; in i915_create_surface_custom() 373 ps->width = u_minify(width0, surf_tmpl->u.tex.level); in i915_create_surface_custom() 374 ps->height = u_minify(height0, surf_tmpl->u.tex.level); in i915_create_surface_custom() 375 ps->u.tex.level = surf_tmpl->u.tex.level; in i915_create_surface_custom() 376 ps->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in i915_create_surface_custom() 377 ps->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in i915_create_surface_custom() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_cb_eglimage.c | 146 struct pipe_surface *ps, surf_tmpl; in st_egl_image_target_renderbuffer_storage() local 148 u_surface_default_template(&surf_tmpl, stimg.texture); in st_egl_image_target_renderbuffer_storage() 149 surf_tmpl.format = stimg.format; in st_egl_image_target_renderbuffer_storage() 150 surf_tmpl.u.tex.level = stimg.level; in st_egl_image_target_renderbuffer_storage() 151 surf_tmpl.u.tex.first_layer = stimg.layer; in st_egl_image_target_renderbuffer_storage() 152 surf_tmpl.u.tex.last_layer = stimg.layer; in st_egl_image_target_renderbuffer_storage() 153 ps = pipe->create_surface(pipe, stimg.texture, &surf_tmpl); in st_egl_image_target_renderbuffer_storage()
|
D | st_cb_fbo.c | 471 struct pipe_surface surf_tmpl; in st_update_renderbuffer_surface() local 472 memset(&surf_tmpl, 0, sizeof(surf_tmpl)); in st_update_renderbuffer_surface() 473 surf_tmpl.format = format; in st_update_renderbuffer_surface() 474 surf_tmpl.u.tex.level = level; in st_update_renderbuffer_surface() 475 surf_tmpl.u.tex.first_layer = first_layer; in st_update_renderbuffer_surface() 476 surf_tmpl.u.tex.last_layer = last_layer; in st_update_renderbuffer_surface() 480 *psurf = pipe->create_surface(pipe, resource, &surf_tmpl); in st_update_renderbuffer_surface()
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_texture.c | 293 const struct pipe_surface *surf_tmpl) in softpipe_create_surface() argument 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->u.buf.first_element + 1; in softpipe_create_surface() 318 ps->u.buf.first_element = surf_tmpl->u.buf.first_element; in softpipe_create_surface() [all …]
|
/external/mesa3d/src/gallium/tests/trivial/ |
D | tri.c | 86 struct pipe_surface surf_tmpl; in init_prog() local 159 surf_tmpl.format = PIPE_FORMAT_B8G8R8A8_UNORM; in init_prog() 160 surf_tmpl.u.tex.level = 0; in init_prog() 161 surf_tmpl.u.tex.first_layer = 0; in init_prog() 162 surf_tmpl.u.tex.last_layer = 0; in init_prog() 168 p->framebuffer.cbufs[0] = p->pipe->create_surface(p->pipe, p->target, &surf_tmpl); in init_prog()
|
D | quad-tex.c | 91 struct pipe_surface surf_tmpl; in init_prog() local 214 surf_tmpl.format = PIPE_FORMAT_B8G8R8A8_UNORM; /* All drivers support this */ in init_prog() 215 surf_tmpl.u.tex.level = 0; in init_prog() 216 surf_tmpl.u.tex.first_layer = 0; in init_prog() 217 surf_tmpl.u.tex.last_layer = 0; in init_prog() 223 p->framebuffer.cbufs[0] = p->pipe->create_surface(p->pipe, p->target, &surf_tmpl); in init_prog()
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_blit.c | 163 struct pipe_surface *zsurf, *cbsurf, surf_tmpl; in r600_blit_decompress_depth() local 170 surf_tmpl.format = texture->resource.b.b.format; in r600_blit_decompress_depth() 171 surf_tmpl.u.tex.level = level; in r600_blit_decompress_depth() 172 surf_tmpl.u.tex.first_layer = layer; in r600_blit_decompress_depth() 173 surf_tmpl.u.tex.last_layer = layer; in r600_blit_decompress_depth() 175 zsurf = ctx->create_surface(ctx, &texture->resource.b.b, &surf_tmpl); in r600_blit_decompress_depth() 177 surf_tmpl.format = flushed_depth_texture->resource.b.b.format; in r600_blit_decompress_depth() 179 &flushed_depth_texture->resource.b.b, &surf_tmpl); in r600_blit_decompress_depth() 211 struct pipe_surface *zsurf, surf_tmpl = {{0}}; in r600_blit_decompress_depth_in_place() local 225 surf_tmpl.format = texture->resource.b.b.format; in r600_blit_decompress_depth_in_place() [all …]
|
/external/mesa3d/src/gallium/drivers/swr/ |
D | swr_context.cpp | 47 const struct pipe_surface *surf_tmpl) in swr_create_surface() argument 56 ps->format = surf_tmpl->format; in swr_create_surface() 58 assert(surf_tmpl->u.tex.level <= pt->last_level); in swr_create_surface() 59 ps->width = u_minify(pt->width0, surf_tmpl->u.tex.level); in swr_create_surface() 60 ps->height = u_minify(pt->height0, surf_tmpl->u.tex.level); in swr_create_surface() 61 ps->u.tex.level = surf_tmpl->u.tex.level; in swr_create_surface() 62 ps->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in swr_create_surface() 63 ps->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in swr_create_surface() 67 ps->width = surf_tmpl->u.buf.last_element in swr_create_surface() 68 - surf_tmpl->u.buf.first_element + 1; in swr_create_surface() [all …]
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_blit.c | 106 struct pipe_surface surf_tmpl = {{0}}; in si_blit_dbcb_copy() local 128 surf_tmpl.u.tex.level = level; in si_blit_dbcb_copy() 133 surf_tmpl.format = src->resource.b.b.format; in si_blit_dbcb_copy() 134 surf_tmpl.u.tex.first_layer = layer; in si_blit_dbcb_copy() 135 surf_tmpl.u.tex.last_layer = layer; in si_blit_dbcb_copy() 137 zsurf = sctx->b.b.create_surface(&sctx->b.b, &src->resource.b.b, &surf_tmpl); in si_blit_dbcb_copy() 139 surf_tmpl.format = dst->resource.b.b.format; in si_blit_dbcb_copy() 140 cbsurf = sctx->b.b.create_surface(&sctx->b.b, &dst->resource.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.format = texture->resource.b.b.format; in si_blit_decompress_zs_planes_in_place() [all …]
|
/external/mesa3d/src/gallium/drivers/noop/ |
D | noop_state.c | 91 const struct pipe_surface *surf_tmpl) in noop_create_surface() argument 100 surface->format = surf_tmpl->format; in noop_create_surface() 104 surface->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in noop_create_surface() 105 surface->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in noop_create_surface() 106 surface->u.tex.level = surf_tmpl->u.tex.level; in noop_create_surface()
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_texture.h | 82 const struct pipe_surface *surf_tmpl, 88 const struct pipe_surface *surf_tmpl);
|
D | r300_texture.c | 1214 const struct pipe_surface *surf_tmpl, in r300_create_surface_custom() argument 1220 unsigned level = surf_tmpl->u.tex.level; in r300_create_surface_custom() 1222 assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer); in r300_create_surface_custom() 1230 surface->base.format = surf_tmpl->format; in r300_create_surface_custom() 1234 surface->base.u.tex.first_layer = surf_tmpl->u.tex.first_layer; in r300_create_surface_custom() 1235 surface->base.u.tex.last_layer = surf_tmpl->u.tex.last_layer; in r300_create_surface_custom() 1245 surf_tmpl->u.tex.first_layer); in r300_create_surface_custom() 1289 const struct pipe_surface *surf_tmpl) in r300_create_surface() argument 1291 return r300_create_surface_custom(ctx, texture, surf_tmpl, in r300_create_surface()
|
D | r300_blit.c | 717 struct pipe_surface surf_tmpl; in r300_simple_msaa_resolve() local 720 memset(&surf_tmpl, 0, sizeof(surf_tmpl)); in r300_simple_msaa_resolve() 721 surf_tmpl.format = format; in r300_simple_msaa_resolve() 722 srcsurf = r300_surface(pipe->create_surface(pipe, src, &surf_tmpl)); in r300_simple_msaa_resolve() 724 surf_tmpl.format = format; in r300_simple_msaa_resolve() 725 surf_tmpl.u.tex.level = dst_level; in r300_simple_msaa_resolve() 726 surf_tmpl.u.tex.first_layer = in r300_simple_msaa_resolve() 727 surf_tmpl.u.tex.last_layer = dst_layer; in r300_simple_msaa_resolve() 728 dstsurf = r300_surface(pipe->create_surface(pipe, dst, &surf_tmpl)); in r300_simple_msaa_resolve()
|
/external/mesa3d/src/gallium/drivers/vc5/ |
D | vc5_resource.c | 641 const struct pipe_surface *surf_tmpl) in vc5_create_surface() argument 651 assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer); in vc5_create_surface() 654 unsigned level = surf_tmpl->u.tex.level; in vc5_create_surface() 665 psurf->format = surf_tmpl->format; 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()
|