glsl_to_nir: zero-initialize var->data.descriptor_set
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 9 Jun 2017 15:59:45 +0000 (17:59 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 5 Jul 2017 10:27:10 +0000 (12:27 +0200)
commit10e1d2d9aa4b8fb240923c7b9b3d0bb3ce3b731a
tree7f800ec2dd087023000d63f645d3979f8dd02fd6
parent9a81d032c12d734ca483e2b822c201527a320213
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 <tarceri@itsqueeze.com>
src/compiler/glsl/glsl_to_nir.cpp