From 18c2e09dc747bb4290e9c37bab1f8e039c6c8c7e Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 31 Jul 2019 15:47:34 -0700 Subject: gallium: Implement GL_EXT_shader_samples_identical via a new capability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This exposes the textureSamplesIdenticalEXT function in GLSL. We enable it for iris and radeonsi, because their compilers already have support for this. Tested on Intel Kabylake and AMD Vega 64. Reviewed-by: Marek Olšák --- src/gallium/auxiliary/util/u_screen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/auxiliary/util') diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index fec4a10c539..270d13a5056 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -335,6 +335,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, case PIPE_CAP_FRAGMENT_SHADER_INTERLOCK: case PIPE_CAP_CS_DERIVED_SYSTEM_VALUES_SUPPORTED: case PIPE_CAP_ATOMIC_FLOAT_MINMAX: + case PIPE_CAP_SHADER_SAMPLES_IDENTICAL: return 0; case PIPE_CAP_MAX_GS_INVOCATIONS: -- cgit v1.2.3