Mesa (master): st/mesa: Fix blitting from GL_DEPTH_STENCIL to GL_STENCIL_INDEX
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Mar 28 17:48:15 UTC 2019
Module: Mesa
Branch: master
Commit: ce89c19b88376bcc4752494d78e4eb220cde6930
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ce89c19b88376bcc4752494d78e4eb220cde6930
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Mar 11 15:03:13 2019 -0700
st/mesa: Fix blitting from GL_DEPTH_STENCIL to GL_STENCIL_INDEX
Fixes assertion failures in Piglit's "framebuffer-blit-levels
{draw,read} stencil" tests on iris. Also fixes assert failures in
frameretrace, which tries to ReadPixels the stencil values (only)
from a Z24S8 depth/stencil attachment.
Reviewed-by: Kristian H. Kristensen <hoegsberg at chromium.org>
---
src/mesa/state_tracker/st_cb_texture.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index 2caf61e8943..f489f8012f4 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -794,6 +794,7 @@ st_get_blit_mask(GLenum srcFormat, GLenum dstFormat)
case GL_STENCIL_INDEX:
switch (srcFormat) {
+ case GL_DEPTH_STENCIL:
case GL_STENCIL_INDEX:
return PIPE_MASK_S;
default:
More information about the mesa-commit
mailing list