GLenum target = 0;
_mesa_meta_fb_tex_blit_begin(ctx, &blit);
- /* XXX: Pretend to support stencil textures so _mesa_base_tex_format()
- * returns a valid format. When we properly support the extension, we
- * should remove this.
- */
- assert(ctx->Extensions.ARB_texture_stencil8 == false);
- ctx->Extensions.ARB_texture_stencil8 = true;
drawFb = ctx->Driver.NewFramebuffer(ctx, 0xDEADBEEF);
if (drawFb == NULL) {
_mesa_DrawArrays(GL_TRIANGLE_FAN, 0, 4);
error:
- ctx->Extensions.ARB_texture_stencil8 = false;
_mesa_meta_fb_tex_blit_end(ctx, target, &blit);
_mesa_meta_end(ctx);
ctx->TextureFormatSupported[MESA_FORMAT_Z24_UNORM_X8_UINT] = true;
ctx->TextureFormatSupported[MESA_FORMAT_Z_FLOAT32] = true;
ctx->TextureFormatSupported[MESA_FORMAT_Z32_FLOAT_S8X24_UINT] = true;
+ ctx->TextureFormatSupported[MESA_FORMAT_S_UINT8] = true;
/* Benchmarking shows that Z16 is slower than Z24, so there's no reason to
* use it unless you're under memory (not memory bandwidth) pressure.