Mesa (main): crocus: enable GL_EXT_memory_object feature on gen7

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 15 00:13:26 UTC 2021


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

Author: Dave Airlie <airlied at gmail.com>
Date:   Mon Jun 14 12:37:41 2021 +1000

crocus: enable GL_EXT_memory_object feature on gen7

This is enabled by enabling gallium's memobj capability.

Ports 05cf1e7f36cb5337aea3467c730bac1b80494730 from iris

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11352>

---

 src/gallium/drivers/crocus/crocus_screen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/crocus/crocus_screen.c b/src/gallium/drivers/crocus/crocus_screen.c
index 54aad8ff854..75713bd5377 100644
--- a/src/gallium/drivers/crocus/crocus_screen.c
+++ b/src/gallium/drivers/crocus/crocus_screen.c
@@ -235,6 +235,7 @@ crocus_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_GL_SPIRV_VARIABLE_POINTERS:
    case PIPE_CAP_COMPUTE_SHADER_DERIVATIVES:
    case PIPE_CAP_DOUBLES:
+   case PIPE_CAP_MEMOBJ:
       return devinfo->ver >= 7;
    case PIPE_CAP_QUERY_BUFFER_OBJECT:
    case PIPE_CAP_ROBUST_BUFFER_ACCESS_BEHAVIOR:



More information about the mesa-commit mailing list