From 6725362dfe9f5e92d4c84bc1bfd5a668aa50f615 Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Thu, 11 Aug 2022 12:37:56 -0700 Subject: [PATCH] microsoft/compiler: Delete double-assignment of sampler metadata field Reviewed-by: Giancarlo Devich Reviewed-by: Boris Brezillon Part-of: --- src/microsoft/compiler/nir_to_dxil.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/microsoft/compiler/nir_to_dxil.c b/src/microsoft/compiler/nir_to_dxil.c index c9e4affb3ad..95cb95616bf 100644 --- a/src/microsoft/compiler/nir_to_dxil.c +++ b/src/microsoft/compiler/nir_to_dxil.c @@ -443,7 +443,6 @@ emit_sampler_metadata(struct dxil_module *m, const struct dxil_type *struct_type const struct glsl_type *type = glsl_without_array(var->type); fill_resource_metadata(m, fields, struct_type, var->name, layout); - fields[6] = dxil_get_metadata_int32(m, DXIL_SAMPLER_KIND_DEFAULT); // sampler kind enum dxil_sampler_kind sampler_kind = glsl_sampler_type_is_shadow(type) ? DXIL_SAMPLER_KIND_COMPARISON : DXIL_SAMPLER_KIND_DEFAULT; fields[6] = dxil_get_metadata_int32(m, sampler_kind); // sampler kind