st/mesa: apply DepthMode swizzle to stencil texturing as well

Gallium doesn't present these as GL_RED-style. A swizzle is necessary to
present the proper data in the unused components.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
Ilia Mirkin
2016-02-16 18:58:42 -05:00
parent 20e8ee3662
commit 6f4a725073
-2
View File
@@ -147,9 +147,7 @@ compute_texture_format_swizzle(GLenum baseFormat, GLenum depthMode,
else
return SWIZZLE_XYZW;
case GL_STENCIL_INDEX:
return SWIZZLE_XYZW;
case GL_DEPTH_STENCIL:
/* fall-through */
case GL_DEPTH_COMPONENT:
/* Now examine the depth mode */
switch (depthMode) {