projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b72936f
)
nir/spirv: Set the system value mode on builtins
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 26 Jun 2015 00:31:56 +0000
(17:31 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 26 Jun 2015 00:36:34 +0000
(17:36 -0700)
src/glsl/nir/spirv_to_nir.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/spirv_to_nir.c
b/src/glsl/nir/spirv_to_nir.c
index fbf6969f2fd35daa22aba8d1365f44605cd594ee..7632ca2bf1879fa7c005d747a85c51e9772de977 100644
(file)
--- a/
src/glsl/nir/spirv_to_nir.c
+++ b/
src/glsl/nir/spirv_to_nir.c
@@
-419,6
+419,7
@@
var_decoration_cb(struct vtn_builder *b, struct vtn_value *val,
var->data.descriptor_set = dec->literals[0];
break;
case SpvDecorationBuiltIn:
+ var->data.mode = nir_var_system_value;
var->data.read_only = true;
switch ((SpvBuiltIn)dec->literals[0]) {
case SpvBuiltInFrontFacing: