Mesa (master): glsl: copy the new data fields when converting to nir

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Dec 13 00:35:41 UTC 2019


Module: Mesa
Branch: master
Commit: 3c364f90fd0a33004faba46ecc100983cda64cb9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3c364f90fd0a33004faba46ecc100983cda64cb9

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Tue Oct 22 14:54:34 2019 +1100

glsl: copy the new data fields when converting to nir

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 at igalia.com>

---

 src/compiler/glsl/glsl_to_nir.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp
index a70fadc4b1c..494c0c2723a 100644
--- 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) {




More information about the mesa-commit mailing list