/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_surface.c | 186 const struct pipe_surface *surf_tmpl) in svga_create_surface() argument 195 boolean render = (surf_tmpl->usage & (PIPE_BIND_RENDER_TARGET | in svga_create_surface() 201 assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer); in svga_create_surface() 208 face = surf_tmpl->u.tex.first_layer; in svga_create_surface() 213 zslice = surf_tmpl->u.tex.first_layer; in svga_create_surface() 219 s->base.format = surf_tmpl->format; in svga_create_surface() 220 s->base.width = u_minify(pt->width0, surf_tmpl->u.tex.level); in svga_create_surface() 221 s->base.height = u_minify(pt->height0, surf_tmpl->u.tex.level); in svga_create_surface() 222 s->base.usage = surf_tmpl->usage; in svga_create_surface() 223 s->base.u.tex.level = surf_tmpl->u.tex.level; in svga_create_surface() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/ |
D | svga_surface.c | 186 const struct pipe_surface *surf_tmpl) in svga_create_surface() argument 195 boolean render = (surf_tmpl->usage & (PIPE_BIND_RENDER_TARGET | in svga_create_surface() 201 assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer); in svga_create_surface() 208 face = surf_tmpl->u.tex.first_layer; in svga_create_surface() 213 zslice = surf_tmpl->u.tex.first_layer; in svga_create_surface() 219 s->base.format = surf_tmpl->format; in svga_create_surface() 220 s->base.width = u_minify(pt->width0, surf_tmpl->u.tex.level); in svga_create_surface() 221 s->base.height = u_minify(pt->height0, surf_tmpl->u.tex.level); in svga_create_surface() 222 s->base.usage = surf_tmpl->usage; in svga_create_surface() 223 s->base.u.tex.level = surf_tmpl->u.tex.level; in svga_create_surface() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
D | st_atom_framebuffer.c | 71 struct pipe_surface surf_tmpl; in update_renderbuffer_surface() local 72 memset(&surf_tmpl, 0, sizeof(surf_tmpl)); in update_renderbuffer_surface() 73 surf_tmpl.format = format; in update_renderbuffer_surface() 74 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; in update_renderbuffer_surface() 75 surf_tmpl.u.tex.level = level; in update_renderbuffer_surface() 76 surf_tmpl.u.tex.first_layer = strb->rtt_face + strb->rtt_slice; in update_renderbuffer_surface() 77 surf_tmpl.u.tex.last_layer = strb->rtt_face + strb->rtt_slice; in update_renderbuffer_surface() 83 &surf_tmpl); in update_renderbuffer_surface()
|
D | st_cb_fbo.c | 117 struct pipe_surface surf_tmpl; in st_renderbuffer_alloc_storage() local 209 u_surface_default_template(&surf_tmpl, strb->texture, templ.bind); in st_renderbuffer_alloc_storage() 212 &surf_tmpl); in st_renderbuffer_alloc_storage() 394 struct pipe_surface surf_tmpl; in st_render_texture() local 444 memset(&surf_tmpl, 0, sizeof(surf_tmpl)); in st_render_texture() 445 surf_tmpl.format = ctx->Color.sRGBEnabled in st_render_texture() 447 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; in st_render_texture() 448 surf_tmpl.u.tex.level = strb->rtt_level; in st_render_texture() 449 surf_tmpl.u.tex.first_layer = strb->rtt_face + strb->rtt_slice; in st_render_texture() 450 surf_tmpl.u.tex.last_layer = strb->rtt_face + strb->rtt_slice; in st_render_texture() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_framebuffer.c | 71 struct pipe_surface surf_tmpl; in update_renderbuffer_surface() local 72 memset(&surf_tmpl, 0, sizeof(surf_tmpl)); in update_renderbuffer_surface() 73 surf_tmpl.format = format; in update_renderbuffer_surface() 74 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; in update_renderbuffer_surface() 75 surf_tmpl.u.tex.level = level; in update_renderbuffer_surface() 76 surf_tmpl.u.tex.first_layer = strb->rtt_face + strb->rtt_slice; in update_renderbuffer_surface() 77 surf_tmpl.u.tex.last_layer = strb->rtt_face + strb->rtt_slice; in update_renderbuffer_surface() 83 &surf_tmpl); in update_renderbuffer_surface()
|
D | st_cb_fbo.c | 117 struct pipe_surface surf_tmpl; in st_renderbuffer_alloc_storage() local 209 u_surface_default_template(&surf_tmpl, strb->texture, templ.bind); in st_renderbuffer_alloc_storage() 212 &surf_tmpl); in st_renderbuffer_alloc_storage() 394 struct pipe_surface surf_tmpl; in st_render_texture() local 444 memset(&surf_tmpl, 0, sizeof(surf_tmpl)); in st_render_texture() 445 surf_tmpl.format = ctx->Color.sRGBEnabled in st_render_texture() 447 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; in st_render_texture() 448 surf_tmpl.u.tex.level = strb->rtt_level; in st_render_texture() 449 surf_tmpl.u.tex.first_layer = strb->rtt_face + strb->rtt_slice; in st_render_texture() 450 surf_tmpl.u.tex.last_layer = strb->rtt_face + strb->rtt_slice; in st_render_texture() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/tests/graw/ |
D | clear.c | 43 struct pipe_surface surf_tmpl; in init() local 84 surf_tmpl.format = templat.format; in init() 85 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; 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 | 178 struct pipe_surface surf_tmpl; in init() local 219 surf_tmpl.format = templat.format; in init() 220 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; in init() 221 surf_tmpl.u.tex.level = 0; in init() 222 surf_tmpl.u.tex.first_layer = 0; in init() 223 surf_tmpl.u.tex.last_layer = 0; in init() 224 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init()
|
D | shader-leak.c | 171 struct pipe_surface surf_tmpl; in init() local 212 surf_tmpl.format = templat.format; in init() 213 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; in init() 214 surf_tmpl.u.tex.level = 0; in init() 215 surf_tmpl.u.tex.first_layer = 0; in init() 216 surf_tmpl.u.tex.last_layer = 0; in init() 217 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init()
|
D | tri-instanced.c | 229 struct pipe_surface surf_tmpl; in init() local 270 surf_tmpl.format = templat.format; in init() 271 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; in init() 272 surf_tmpl.u.tex.level = 0; in init() 273 surf_tmpl.u.tex.first_layer = 0; in init() 274 surf_tmpl.u.tex.last_layer = 0; in init() 275 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init()
|
D | quad-sample.c | 300 struct pipe_surface surf_tmpl; in init() local 341 surf_tmpl.format = templat.format; in init() 342 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; in init() 343 surf_tmpl.u.tex.level = 0; in init() 344 surf_tmpl.u.tex.first_layer = 0; in init() 345 surf_tmpl.u.tex.last_layer = 0; in init() 346 surf = ctx->create_surface(ctx, rttex, &surf_tmpl); in init()
|
/external/mesa3d/src/gallium/tests/graw/ |
D | clear.c | 43 struct pipe_surface surf_tmpl; in init() local 84 surf_tmpl.format = templat.format; in init() 85 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; 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 | 178 struct pipe_surface surf_tmpl; in init() local 219 surf_tmpl.format = templat.format; in init() 220 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; in init() 221 surf_tmpl.u.tex.level = 0; in init() 222 surf_tmpl.u.tex.first_layer = 0; in init() 223 surf_tmpl.u.tex.last_layer = 0; in init() 224 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init()
|
D | shader-leak.c | 171 struct pipe_surface surf_tmpl; in init() local 212 surf_tmpl.format = templat.format; in init() 213 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; in init() 214 surf_tmpl.u.tex.level = 0; in init() 215 surf_tmpl.u.tex.first_layer = 0; in init() 216 surf_tmpl.u.tex.last_layer = 0; in init() 217 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init()
|
D | tri-instanced.c | 229 struct pipe_surface surf_tmpl; in init() local 270 surf_tmpl.format = templat.format; in init() 271 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; in init() 272 surf_tmpl.u.tex.level = 0; in init() 273 surf_tmpl.u.tex.first_layer = 0; in init() 274 surf_tmpl.u.tex.last_layer = 0; in init() 275 surf = ctx->create_surface(ctx, tex, &surf_tmpl); in init()
|
D | quad-sample.c | 300 struct pipe_surface surf_tmpl; in init() local 341 surf_tmpl.format = templat.format; in init() 342 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; in init() 343 surf_tmpl.u.tex.level = 0; in init() 344 surf_tmpl.u.tex.first_layer = 0; in init() 345 surf_tmpl.u.tex.last_layer = 0; in init() 346 surf = ctx->create_surface(ctx, rttex, &surf_tmpl); in init()
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_surface.c | 281 const struct pipe_surface *surf_tmpl) in i915_create_surface() argument 285 assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer); in i915_create_surface() 288 assert(surf_tmpl->u.tex.first_layer == 0); in i915_create_surface() 295 ps->format = surf_tmpl->format; in i915_create_surface() 296 ps->width = u_minify(pt->width0, surf_tmpl->u.tex.level); in i915_create_surface() 297 ps->height = u_minify(pt->height0, surf_tmpl->u.tex.level); in i915_create_surface() 298 ps->u.tex.level = surf_tmpl->u.tex.level; in i915_create_surface() 299 ps->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in i915_create_surface() 300 ps->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in i915_create_surface() 301 ps->usage = surf_tmpl->usage; in i915_create_surface()
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/i915/ |
D | i915_surface.c | 281 const struct pipe_surface *surf_tmpl) in i915_create_surface() argument 285 assert(surf_tmpl->u.tex.first_layer == surf_tmpl->u.tex.last_layer); in i915_create_surface() 288 assert(surf_tmpl->u.tex.first_layer == 0); in i915_create_surface() 295 ps->format = surf_tmpl->format; in i915_create_surface() 296 ps->width = u_minify(pt->width0, surf_tmpl->u.tex.level); in i915_create_surface() 297 ps->height = u_minify(pt->height0, surf_tmpl->u.tex.level); in i915_create_surface() 298 ps->u.tex.level = surf_tmpl->u.tex.level; in i915_create_surface() 299 ps->u.tex.first_layer = surf_tmpl->u.tex.first_layer; in i915_create_surface() 300 ps->u.tex.last_layer = surf_tmpl->u.tex.last_layer; in i915_create_surface() 301 ps->usage = surf_tmpl->usage; in i915_create_surface()
|
/external/mesa3d/src/gallium/tests/trivial/ |
D | tri.c | 86 struct pipe_surface surf_tmpl; in init_prog() local 158 surf_tmpl.format = PIPE_FORMAT_B8G8R8A8_UNORM; in init_prog() 159 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; 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()
|
/external/chromium_org/third_party/mesa/src/src/gallium/tests/trivial/ |
D | tri.c | 86 struct pipe_surface surf_tmpl; in init_prog() local 158 surf_tmpl.format = PIPE_FORMAT_B8G8R8A8_UNORM; in init_prog() 159 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; 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()
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | r600_blit.c | 129 struct pipe_surface *zsurf, *cbsurf, surf_tmpl; in si_blit_uncompress_depth() local 131 surf_tmpl.format = texture->real_format; in si_blit_uncompress_depth() 132 surf_tmpl.u.tex.level = level; in si_blit_uncompress_depth() 133 surf_tmpl.u.tex.first_layer = layer; in si_blit_uncompress_depth() 134 surf_tmpl.u.tex.last_layer = layer; in si_blit_uncompress_depth() 135 surf_tmpl.usage = PIPE_BIND_DEPTH_STENCIL; in si_blit_uncompress_depth() 137 zsurf = ctx->create_surface(ctx, &texture->resource.b.b, &surf_tmpl); in si_blit_uncompress_depth() 139 surf_tmpl.format = texture->flushed_depth_texture->real_format; in si_blit_uncompress_depth() 140 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; in si_blit_uncompress_depth() 142 (struct pipe_resource*)texture->flushed_depth_texture, &surf_tmpl); in si_blit_uncompress_depth()
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeonsi/ |
D | r600_blit.c | 129 struct pipe_surface *zsurf, *cbsurf, surf_tmpl; in si_blit_uncompress_depth() local 131 surf_tmpl.format = texture->real_format; in si_blit_uncompress_depth() 132 surf_tmpl.u.tex.level = level; in si_blit_uncompress_depth() 133 surf_tmpl.u.tex.first_layer = layer; in si_blit_uncompress_depth() 134 surf_tmpl.u.tex.last_layer = layer; in si_blit_uncompress_depth() 135 surf_tmpl.usage = PIPE_BIND_DEPTH_STENCIL; in si_blit_uncompress_depth() 137 zsurf = ctx->create_surface(ctx, &texture->resource.b.b, &surf_tmpl); in si_blit_uncompress_depth() 139 surf_tmpl.format = texture->flushed_depth_texture->real_format; in si_blit_uncompress_depth() 140 surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; in si_blit_uncompress_depth() 142 (struct pipe_resource*)texture->flushed_depth_texture, &surf_tmpl); in si_blit_uncompress_depth()
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_blit.c | 183 struct pipe_surface *zsurf, *cbsurf, surf_tmpl; in r600_blit_decompress_depth() local 190 surf_tmpl.format = texture->resource.b.b.format; in r600_blit_decompress_depth() 191 surf_tmpl.u.tex.level = level; in r600_blit_decompress_depth() 192 surf_tmpl.u.tex.first_layer = layer; in r600_blit_decompress_depth() 193 surf_tmpl.u.tex.last_layer = layer; in r600_blit_decompress_depth() 194 surf_tmpl.usage = PIPE_BIND_DEPTH_STENCIL; in r600_blit_decompress_depth() 196 zsurf = ctx->create_surface(ctx, &texture->resource.b.b, &surf_tmpl); in r600_blit_decompress_depth() 198 surf_tmpl.format = flushed_depth_texture->resource.b.b.format; in r600_blit_decompress_depth() 199 surf_tmpl.u.tex.level = level; in r600_blit_decompress_depth() 200 surf_tmpl.u.tex.first_layer = layer; in r600_blit_decompress_depth() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r600/ |
D | r600_blit.c | 183 struct pipe_surface *zsurf, *cbsurf, surf_tmpl; in r600_blit_decompress_depth() local 190 surf_tmpl.format = texture->resource.b.b.format; in r600_blit_decompress_depth() 191 surf_tmpl.u.tex.level = level; in r600_blit_decompress_depth() 192 surf_tmpl.u.tex.first_layer = layer; in r600_blit_decompress_depth() 193 surf_tmpl.u.tex.last_layer = layer; in r600_blit_decompress_depth() 194 surf_tmpl.usage = PIPE_BIND_DEPTH_STENCIL; in r600_blit_decompress_depth() 196 zsurf = ctx->create_surface(ctx, &texture->resource.b.b, &surf_tmpl); in r600_blit_decompress_depth() 198 surf_tmpl.format = flushed_depth_texture->resource.b.b.format; in r600_blit_decompress_depth() 199 surf_tmpl.u.tex.level = level; in r600_blit_decompress_depth() 200 surf_tmpl.u.tex.first_layer = layer; in r600_blit_decompress_depth() [all …]
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | vg_context.c | 366 struct pipe_surface surf_tmpl; in vg_context_update_depth_stencil_rb() local 380 memset(&surf_tmpl, 0, sizeof(surf_tmpl)); in vg_context_update_depth_stencil_rb() 381 u_surface_default_template(&surf_tmpl, dsrb->texture, in vg_context_update_depth_stencil_rb() 385 &surf_tmpl); in vg_context_update_depth_stencil_rb() 449 struct pipe_surface surf_tmpl; in vg_prepare_blend_texture() local 453 memset(&surf_tmpl, 0, sizeof(surf_tmpl)); in vg_prepare_blend_texture() 454 u_surface_default_template(&surf_tmpl, stfb->blend_texture_view->texture, in vg_prepare_blend_texture() 458 &surf_tmpl); in vg_prepare_blend_texture()
|