From: Nicolai Hähnle Date: Fri, 9 Jun 2017 15:59:45 +0000 (+0200) Subject: glsl_to_nir: zero-initialize var->data.descriptor_set X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=10e1d2d9aa4b8fb240923c7b9b3d0bb3ce3b731a;p=mesa.git glsl_to_nir: zero-initialize var->data.descriptor_set This is convenient for backends that support both Vulkan and OpenGL while lowering samplers to derefs with nir_lower_samplers_as_deref. Reviewed-by: Timothy Arceri --- diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index 6513484fa01..21530040a96 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -424,6 +424,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.offset = ir->data.offset; var->data.image.read_only = ir->data.memory_read_only;