diff options
author | Ilia Mirkin <[email protected]> | 2016-02-16 18:58:42 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-02-17 21:20:24 -0500 |
commit | 6f4a725073fcef6b7b5a7b9acdc99539fa3fa1f4 (patch) | |
tree | 07a248cb9513119d240354a2862fb0a668691f47 /src | |
parent | 20e8ee36627f87414440650dcff89990eb70c688 (diff) |
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 <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_atom_texture.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_atom_texture.c b/src/mesa/state_tracker/st_atom_texture.c index b4e6f9b639a..ab4b2a9ef5f 100644 --- a/src/mesa/state_tracker/st_atom_texture.c +++ b/src/mesa/state_tracker/st_atom_texture.c @@ -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) { |