ac/shader: fix gathering of desc_set_used_mask
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 14 Feb 2018 16:52:25 +0000 (17:52 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 15 Feb 2018 13:53:30 +0000 (14:53 +0100)
This was quite wrong.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_shader_info.c

index f6cdd3470352398d6190a6469d87bddf89ca65cc..5ae8a7204627a5f2bb22673c0d82230d8c0a4d78 100644 (file)
@@ -27,7 +27,7 @@
 static void mark_sampler_desc(const nir_variable *var,
                              struct ac_shader_info *info)
 {
-       info->desc_set_used_mask = (1 << var->data.descriptor_set);
+       info->desc_set_used_mask |= (1 << var->data.descriptor_set);
 }
 
 static void