From 43816d20ddc0864662698c7977b47d76f3b20f2c Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 26 Feb 2021 16:15:31 +0100 Subject: [PATCH] r600: Enable GLSL 450 for nir shaders. Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/r600_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index b4dbe7655ba..99f52a3bee8 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -359,7 +359,7 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_GLSL_FEATURE_LEVEL: if (family >= CHIP_CEDAR) - return 430; + return is_nir_enabled(&rscreen->b) ? 450 : 430; /* pre-evergreen geom shaders need newer kernel */ if (rscreen->b.info.drm_minor >= 37) return 330;