zink: use 0 as default for spec constants

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9258>
This commit is contained in:
Mike Blumenkrantz
2021-02-24 13:38:20 -05:00
committed by Marge Bot
parent 978d244114
commit a6c72af908

View File

@@ -1417,7 +1417,7 @@ SpvId
spirv_builder_spec_const_uint(struct spirv_builder *b, int width)
{
assert(width <= 32);
return spirv_builder_emit_unop(b, SpvOpSpecConstant, spirv_builder_type_uint(b, width), UINT_MAX);
return spirv_builder_emit_unop(b, SpvOpSpecConstant, spirv_builder_type_uint(b, width), 0);
}
SpvId