st/mesa: don't do glCopyPixels via blit if depth bounds test is enabled

Fixes: 36a6f848bb - st/mesa: add EXT_depth_bounds_test

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7720>
(cherry picked from commit 8848114345)
This commit is contained in:
Marek Olšák 2020-12-08 20:40:57 -05:00 committed by Dylan Baker
parent 636a917ca4
commit 99ff47e853
2 changed files with 2 additions and 1 deletions

View file

@ -202,7 +202,7 @@
"description": "st/mesa: don't do glCopyPixels via blit if depth bounds test is enabled",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "36a6f848bb03828aa9c4dc28774acf09055f2831"
},

View file

@ -1570,6 +1570,7 @@ blit_copy_pixels(struct gl_context *ctx, GLint srcx, GLint srcy,
!ctx->Color.BlendEnabled &&
!ctx->Color.AlphaEnabled &&
(!ctx->Color.ColorLogicOpEnabled || ctx->Color.LogicOp == GL_COPY) &&
!ctx->Depth.BoundsTest &&
!ctx->Depth.Test &&
!ctx->Fog.Enabled &&
!ctx->Stencil.Enabled &&