iris: toggle on PIPE_CAP_MIXED_COLOR_DEPTH_BITS
authorTapani Pälli <tapani.palli@intel.com>
Tue, 10 Mar 2020 07:21:09 +0000 (09:21 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Mar 2020 05:08:48 +0000 (05:08 +0000)
This enables additional EGL configs where we have depth/stencil buffer
with different number of bits per pixel than color buffer has. This
enables some Android games to work that require such config.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4127>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4127>

src/gallium/drivers/iris/iris_screen.c

index 561d9146aad4d7c543c937e9ed5a6b8c9862013c..d6c7e4b0ac5755d0c0e699d9d05854b65d69cde4 100644 (file)
@@ -199,6 +199,7 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_GL_SPIRV_VARIABLE_POINTERS:
    case PIPE_CAP_DEMOTE_TO_HELPER_INVOCATION:
    case PIPE_CAP_NATIVE_FENCE_FD:
+   case PIPE_CAP_MIXED_COLOR_DEPTH_BITS:
       return true;
    case PIPE_CAP_FBFETCH:
       return BRW_MAX_DRAW_BUFFERS;