Module: Mesa Branch: master Commit: 652be1563fa6a042d70336431331c75f0f492341 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=652be1563fa6a042d70336431331c75f0f492341
Author: Neil Roberts <[email protected]> Date: Fri Feb 23 16:06:30 2018 +0100 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]> --- src/compiler/glsl/glsl_to_nir.cpp | 1 + src/compiler/nir/nir.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index baaa3affed..b10c1ff4ee 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 66764eeaf2..7e9f3968f6 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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
