mesa/src/compiler/spirv
Neil Roberts c4f30a9100 spirv: Lower BaseVertex to FIRST_VERTEX instead of BASE_VERTEX
The base vertex in Vulkan is different from GL in that for non-indexed
primitives the value is taken from the firstVertex parameter instead
of being set to zero. This coincides with the new SYSTEM_VALUE_FIRST_VERTEX
instead of BASE_VERTEX.

v2 (idr): Add comment describing why SYSTEM_VALUE_FIRST_VERTEX is used
for SpvBuiltInBaseVertex.  Suggested by Jason.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> [v1]
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2018-04-19 15:57:45 -07:00
..
.gitignore .gitignore: Ignore new generated files 2018-01-08 21:11:11 -08:00
gl_spirv.c nir/spirv: add gl_spirv_validation method 2018-03-30 09:14:56 +02:00
GLSL.ext.AMD.h spirv: import AMD extensions header from glslang 2018-03-07 23:09:58 +01:00
GLSL.std.450.h spirv: bump headers to SPIRV 1.1 2017-01-25 17:22:23 +00:00
meson.build spirv: Move SPIR-V building to Makefile.spirv.am and spirv/meson.build 2018-03-29 14:16:01 -07:00
nir_spirv.h nir/spirv: add gl_spirv_validation method 2018-03-30 09:14:56 +02:00
spirv.core.grammar.json spirv: Update spirv.h to 12f8de9f04327336b699b1b80aa390ae7f9ddbf4 2018-04-18 22:56:54 +02:00
spirv.h spirv: Update spirv.h to 12f8de9f04327336b699b1b80aa390ae7f9ddbf4 2018-04-18 22:56:54 +02:00
spirv2nir.c spirv: Rework logging 2017-12-04 09:21:09 -08:00
spirv_info.h spirv/info: Add spirv_op_to_string 2018-01-08 14:57:44 -08:00
spirv_info_c.py spirv/info: Add spirv_op_to_string 2018-01-08 14:57:44 -08:00
spirv_to_nir.c spirv: Add support for runtime descriptor array cap. 2018-04-18 22:56:54 +02:00
vtn_alu.c spirv: Add a 64-bit implementation of OpIsInf 2018-04-17 20:58:06 +02:00
vtn_amd.c nir/spirv: s/uint32_t/SpvOp/ in various functions 2018-03-30 14:33:33 -06:00
vtn_cfg.c spirv: s/uint/unsigned/ to fix MSVC build 2018-03-30 14:33:33 -06:00
vtn_gather_types_c.py spirv: Add a prepass to set types on vtn_values 2017-12-11 22:28:34 -08:00
vtn_glsl450.c spirv: Accept doubles in FaceForward, Reflect and Refract 2018-04-17 20:58:11 +02:00
vtn_private.h nir/spirv: s/uint32_t/SpvOp/ in various functions 2018-03-30 14:33:33 -06:00
vtn_subgroup.c nir/spirv: Fix warning and add missing breaks. 2018-04-14 00:52:22 +02:00
vtn_variables.c spirv: Lower BaseVertex to FIRST_VERTEX instead of BASE_VERTEX 2018-04-19 15:57:45 -07:00