microsoft/compiler: Delete double-assignment of sampler metadata field

Reviewed-by: Giancarlo Devich <gdevich@microsoft.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18022>
This commit is contained in:
Jesse Natalie
2022-08-11 12:37:56 -07:00
committed by Marge Bot
parent a19628e3c7
commit 6725362dfe
-1
View File
@@ -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