[Mesa-dev] [PATCH] ac/shader: fix gathering of desc_set_used_mask
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Feb 14 16:52:25 UTC 2018
This was quite wrong.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/amd/common/ac_shader_info.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/common/ac_shader_info.c b/src/amd/common/ac_shader_info.c
index 3b0887995d..2708f6a9c0 100644
--- a/src/amd/common/ac_shader_info.c
+++ b/src/amd/common/ac_shader_info.c
@@ -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
--
2.16.1
More information about the mesa-dev
mailing list