mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 09:30:11 +01:00
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@chromium.org>
This commit is contained in:
parent
107a8ec3b3
commit
ce89c19b88
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue