gallium: Add ARB_gl_spirv support
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 5 Aug 2019 23:25:11 +0000 (16:25 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 10 Sep 2019 21:36:46 +0000 (14:36 -0700)
commiteca8032f20d0970184843d98e2bddb688e94a3a9
tree02ee58d7a29dea7a00f513441f34a86ebe2bebbe
parentdccd179ba1c4179fda3eedd928d63fc82c777220
gallium: Add ARB_gl_spirv support

The PIPE_CAP_GL_SPIRV capability enables ARB_gl_spirv and
ARB_spirv_extensions, and will make sure the corresponding SPIR-V
capabilities and extensions lists are initialized.

The additional PIPE_CAP_GL_SPIRV_VARIABLE_POINTERS capability enables
the support for Variable Pointers in SPIR-V shaders.  This depends on
the driver and is not mandatory for ARB_gl_spirv support.

v2: Add a PIPE_CAP for Variable Pointers.  (Marek)

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com> [v1]
src/gallium/auxiliary/util/u_screen.c
src/gallium/docs/source/screen.rst
src/gallium/include/pipe/p_defines.h
src/mesa/state_tracker/st_extensions.c