diff options
author | Rob Clark <[email protected]> | 2019-03-21 08:56:17 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-03-22 16:39:13 -0400 |
commit | de481947d975496b274cf0e0300383d932dcaea5 (patch) | |
tree | 9b82f59fdfa2f3f4b5985b24803e79851ead52f8 /src/gallium/auxiliary | |
parent | 93c81ca336f64c45e43f0c40cb5c5f9084745233 (diff) |
gallium: add PIPE_CAP_ESSL_FEATURE_LEVEL
Adds a new cap to allow drivers to expose higher shading language
versions in GLES contexts, to avoid having to report an artificially
low version for the benefit of GL contexts.
The motivation is to expose EXT_gpu_shader5 even though a driver may
not support all the features needed for the corresponding GL extension
(ARB_gpu_shader5).
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/util/u_screen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index b902c083ad4..9f0be8060ee 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -107,6 +107,10 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, /* Minimum GLSL level implemented by gallium drivers. */ return 120; + case PIPE_CAP_ESSL_FEATURE_LEVEL: + /* Tell state-tracker to fallback to PIPE_CAP_GLSL_FEATURE_LEVEL */ + return 0; + case PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION: case PIPE_CAP_USER_VERTEX_BUFFERS: case PIPE_CAP_VERTEX_BUFFER_OFFSET_4BYTE_ALIGNED_ONLY: |