Mesa (main): crocus/gen5: enable support for GL_EXT_gpu_shader4

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Jul 4 21:07:15 UTC 2021


Module: Mesa
Branch: main
Commit: d41992c24101d4fabdefd4f45c3ffa4f19be66c1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d41992c24101d4fabdefd4f45c3ffa4f19be66c1

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Jul  1 12:23:09 2021 +1000

crocus/gen5: enable support for GL_EXT_gpu_shader4

There has been a few requests for this and I've got patches for glamor
to use this to speed up the paths that use GLSL 1.30 now.

Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11693>

---

 src/gallium/drivers/crocus/crocus_screen.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/crocus/crocus_screen.c b/src/gallium/drivers/crocus/crocus_screen.c
index 6c49fe59933..b722c9b54ca 100644
--- a/src/gallium/drivers/crocus/crocus_screen.c
+++ b/src/gallium/drivers/crocus/crocus_screen.c
@@ -294,10 +294,10 @@ crocus_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
          return 420;
       else if (devinfo->ver >= 6)
          return 330;
-      return 120;
+      return 140;
    }
    case PIPE_CAP_GLSL_FEATURE_LEVEL_COMPATIBILITY:
-      return devinfo->ver < 6 ? 120 : 130;
+      return 140;
 
    case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT:
       /* 3DSTATE_CONSTANT_XS requires the start of UBOs to be 32B aligned */



More information about the mesa-commit mailing list