etnaviv: enable shareable shaders
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 6 Mar 2020 21:44:42 +0000 (22:44 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 13 Mar 2020 16:50:19 +0000 (16:50 +0000)
We are not using any pctx reference in the shader so it seems fine
to enable this cap.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4095>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4095>

src/gallium/drivers/etnaviv/etnaviv_screen.c

index 1aeef0dea53b3eceed122565cc69c445da082461..d5fd35cbd77c80eb3f924d7681db22c5578dc40d 100644 (file)
@@ -152,6 +152,7 @@ etna_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_MIXED_COLOR_DEPTH_BITS:
    case PIPE_CAP_MIXED_FRAMEBUFFER_SIZES:
    case PIPE_CAP_STRING_MARKER:
+   case PIPE_CAP_SHAREABLE_SHADERS:
       return 1;
    case PIPE_CAP_NATIVE_FENCE_FD:
       return screen->drm_version >= ETNA_DRM_VERSION_FENCE_FD;