Module: Mesa
Branch: master
Commit: 43816d20ddc0864662698c7977b47d76f3b20f2c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=43816d20ddc0864662698c7977b47d76f3b20f2c

Author: Gert Wollny <[email protected]>
Date:   Fri Feb 26 16:15:31 2021 +0100

r600: Enable GLSL 450 for nir shaders.

Signed-off-by: Gert Wollny <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9330>

---

 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;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to