aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl
diff options
context:
space:
mode:
authorNeil Roberts <[email protected]>2018-02-23 16:06:30 +0100
committerAlejandro PiƱeiro <[email protected]>2018-06-21 14:25:05 +0200
commit652be1563fa6a042d70336431331c75f0f492341 (patch)
tree8b42a0bf3832412075546e23d511b71dc7f38d51 /src/compiler/glsl
parent8d1ec2ed5a24ed6b29fbffd8fc316e9b5579ea49 (diff)
nir: Add explicit_binding to nir_variable
This is copied from the corresponding value in ir_variable. The intention is to eventually use it in a pure-NIR linker. Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r--src/compiler/glsl/glsl_to_nir.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp
index baaa3affed9..b10c1ff4eeb 100644
--- a/src/compiler/glsl/glsl_to_nir.cpp
+++ b/src/compiler/glsl/glsl_to_nir.cpp
@@ -435,6 +435,7 @@ nir_visitor::visit(ir_variable *ir)
var->data.index = ir->data.index;
var->data.descriptor_set = 0;
var->data.binding = ir->data.binding;
+ var->data.explicit_binding = ir->data.explicit_binding;
var->data.bindless = ir->data.bindless;
var->data.offset = ir->data.offset;
var->data.image.read_only = ir->data.memory_read_only;