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:

committed by
Marge Bot

parent
978d244114
commit
a6c72af908
@@ -1417,7 +1417,7 @@ SpvId
|
|||||||
spirv_builder_spec_const_uint(struct spirv_builder *b, int width)
|
spirv_builder_spec_const_uint(struct spirv_builder *b, int width)
|
||||||
{
|
{
|
||||||
assert(width <= 32);
|
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
|
SpvId
|
||||||
|
Reference in New Issue
Block a user