summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorAntia Puentes <[email protected]>2018-04-28 14:09:21 +0200
committerAntia Puentes <[email protected]>2018-05-02 11:24:31 +0200
commit0fb204fac14cd2c7cf4a04f4060d4000bf5e3d35 (patch)
tree7be39a2ea881da05eb4fd50509a241773fdc49b2 /src/compiler/nir/nir.h
parent0cbf29fa5592b7feba6a307d597915cc07be828c (diff)
compiler/nir: Add conditional lowering for gl_BaseVertex
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index f8e71d54a50..ec3dbf035c0 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -1930,6 +1930,12 @@ typedef struct nir_shader_compiler_options {
/* Indicates that the driver only has zero-based vertex id */
bool vertex_id_zero_based;
+ /**
+ * If enabled, gl_BaseVertex will be lowered as:
+ * is_indexed_draw (~0/0) & firstvertex
+ */
+ bool lower_base_vertex;
+
bool lower_cs_local_index_from_id;
bool lower_device_index_to_zero;