From: Samuel Pitoiset Date: Wed, 14 Feb 2018 16:52:25 +0000 (+0100) Subject: ac/shader: fix gathering of desc_set_used_mask X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=309854148c8bc9c344052dab928ee07292cb623d;p=mesa.git ac/shader: fix gathering of desc_set_used_mask This was quite wrong. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/common/ac_shader_info.c b/src/amd/common/ac_shader_info.c index f6cdd347035..5ae8a720462 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