gallium: add PIPE_CAP_ESSL_FEATURE_LEVEL
authorRob Clark <robdclark@gmail.com>
Thu, 21 Mar 2019 12:56:17 +0000 (08:56 -0400)
committerRob Clark <robdclark@gmail.com>
Fri, 22 Mar 2019 20:39:13 +0000 (16:39 -0400)
commitde481947d975496b274cf0e0300383d932dcaea5
tree9b82f59fdfa2f3f4b5985b24803e79851ead52f8
parent93c81ca336f64c45e43f0c40cb5c5f9084745233
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 <robdclark@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/auxiliary/util/u_screen.c
src/gallium/docs/source/screen.rst
src/gallium/include/pipe/p_defines.h