mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
intel: Mark MESA_FORMAT_X8_Z24 as always supported.
This prevents developer surprise at seeing a GL_DEPTH_COMPONENT texture have stencil bits, and avoids the metaops path accidentally copying stencil bits around in glCopyTexImage(GL_DEPTH_COMPONENT) (and being broken because swrast's glReadPixels(GL_UNSIGNED_INT_24_8) is broken). Acked-by: Chad Versace <chad@chad-versace.us>
This commit is contained in:
parent
3de9405763
commit
86e62b2357
1 changed files with 1 additions and 1 deletions
|
|
@ -661,7 +661,7 @@ intelInitContext(struct intel_context *intel,
|
|||
|
||||
/* Depth and stencil */
|
||||
ctx->TextureFormatSupported[MESA_FORMAT_S8_Z24] = GL_TRUE;
|
||||
ctx->TextureFormatSupported[MESA_FORMAT_X8_Z24] = intel->has_separate_stencil;
|
||||
ctx->TextureFormatSupported[MESA_FORMAT_X8_Z24] = GL_TRUE;
|
||||
ctx->TextureFormatSupported[MESA_FORMAT_S8] = intel->has_separate_stencil;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue