From: Christian Gmeiner Date: Fri, 6 Mar 2020 21:44:42 +0000 (+0100) Subject: etnaviv: enable shareable shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a19d8c836f2263a2edeca4aea52676ecdbf2e8e9;p=mesa.git etnaviv: enable shareable shaders We are not using any pctx reference in the shader so it seems fine to enable this cap. Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach Tested-by: Marge Bot Part-of: --- diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c index 1aeef0dea53..d5fd35cbd77 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_screen.c +++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c @@ -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;