projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56c25b9
)
glsl: copy the new data fields when converting to nir
author
Timothy Arceri
<tarceri@itsqueeze.com>
Tue, 22 Oct 2019 03:54:34 +0000
(14:54 +1100)
committer
Timothy Arceri
<tarceri@itsqueeze.com>
Fri, 13 Dec 2019 00:07:19 +0000
(
00:07
+0000)
These fields added in the previous commit will be used to make use
of a NIR based GLSL linker.
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/glsl/glsl_to_nir.cpp
patch
|
blob
|
history
diff --git
a/src/compiler/glsl/glsl_to_nir.cpp
b/src/compiler/glsl/glsl_to_nir.cpp
index a70fadc4b1c81bcb2b60e8c2ab27cf4b2976f452..494c0c2723a79c5d739a5ee3b240085dfc8fc590 100644
(file)
--- a/
src/compiler/glsl/glsl_to_nir.cpp
+++ b/
src/compiler/glsl/glsl_to_nir.cpp
@@
-450,6
+450,10
@@
nir_visitor::visit(ir_variable *ir)
var->data.stream = ir->data.stream;
if (ir->data.stream & (1u << 31))
var->data.stream |= NIR_STREAM_PACKED;
+
+ var->data.precision = ir->data.precision;
+ var->data.explicit_location = ir->data.explicit_location;
+ var->data.from_named_ifc_block = ir->data.from_named_ifc_block;
var->data.compact = false;
switch(ir->data.mode) {