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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user