nir/spirv: Fix gl_BaseVertex for non-indexed draws for OpenGL
authorAntia Puentes <apuentes@igalia.com>
Thu, 28 Feb 2019 18:07:36 +0000 (19:07 +0100)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 6 Aug 2019 16:11:27 +0000 (09:11 -0700)
commit954224b7147e8197555856d9833e8cfb2342d4d5
treeff4b1c5d26f2c8d2005b8317dc72c97c1d503334
parent382f92a81436a78f059daae86b4dfd2845635f92
nir/spirv: Fix gl_BaseVertex for non-indexed draws for OpenGL

Lowers BaseVertex to the correct system value for OpenGL.

v2: use options->environment rather than adding a new flag to
    spirv_to_nir_options

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/spirv/vtn_variables.c