iris: Enable ARB_gl_spirv and ARB_spirv_extensions
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 5 Aug 2019 23:56:42 +0000 (16:56 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 10 Sep 2019 21:36:46 +0000 (14:36 -0700)
This will also "unlock" OpenGL 4.6 for Iris!

v2: Also enable PIPE_CAP_GL_SPIRV_VARIABLE_POINTERS.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com> [v1]
src/gallium/drivers/iris/iris_screen.c

index e09f4fe4423cc5a0455e8c06722a347e04fa28c5..2e7cf9f4e596a84b08861618788fab6a170e7c25 100644 (file)
@@ -200,6 +200,8 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_CS_DERIVED_SYSTEM_VALUES_SUPPORTED:
    case PIPE_CAP_TEXTURE_SHADOW_LOD:
    case PIPE_CAP_SHADER_SAMPLES_IDENTICAL:
+   case PIPE_CAP_GL_SPIRV:
+   case PIPE_CAP_GL_SPIRV_VARIABLE_POINTERS:
       return true;
    case PIPE_CAP_FBFETCH:
       return BRW_MAX_DRAW_BUFFERS;