st/mesa: Set EmitNoIndirectSampler if GLSLVersion < 400.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 26 Jun 2019 04:00:46 +0000 (21:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 27 Jun 2019 05:54:52 +0000 (22:54 -0700)
commitacadeaff6a2e6e10e32e78bb745fbaf277544a6f
tree5ca98bce7d4355d5c174d9d4890b5df208a547b1
parent116144d65ef446c0d9ec17f166ca6114e3fbf686
st/mesa: Set EmitNoIndirectSampler if GLSLVersion < 400.

This patch changes the code which sets EmitNoIndirectSampler to check
the core profile GLSL version, rather than the ARB_gpu_shader5 extension
enable.  st/mesa exposes ARB_gpu_shader5 if GLSLVersion (in core
profiles) or GLSLVersionCompat (in compat profiles) >= 400.

The Intel drivers do not currently expose ARB_gpu_shader5 in compat
profiles.  But the backend can absolutely handle indirect samplers.
Looking at the core profile version number should be a good indication
of what the driver supports.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/state_tracker/st_context.c