mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-16 05:28:14 +02: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>
(cherry-picked from commit 86e62b2357)
This commit is contained in:
parent
5b09cf5c57
commit
57a6e6092f
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