diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/glsl/glsl_to_nir.cpp | 1 | ||||
-rw-r--r-- | src/compiler/nir/nir.h | 5 |
2 files changed, 6 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; diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 66764eeaf29..7e9f3968f63 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -253,6 +253,11 @@ typedef struct nir_variable { unsigned bindless:1; /** + * Was an explicit binding set in the shader? + */ + unsigned explicit_binding:1; + + /** * \brief Layout qualifier for gl_FragDepth. * * This is not equal to \c ir_depth_layout_none if and only if this |