mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
zink: set default spec constant value to 1
this is less illegal Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19116>
This commit is contained in:
parent
c305a2c962
commit
d2eebb670e
1 changed files with 4 additions and 1 deletions
|
|
@ -1544,7 +1544,10 @@ spirv_builder_spec_const_uint(struct spirv_builder *b, int width)
|
||||||
spirv_buffer_emit_word(&b->types_const_defs, SpvOpSpecConstant | (4 << 16));
|
spirv_buffer_emit_word(&b->types_const_defs, SpvOpSpecConstant | (4 << 16));
|
||||||
spirv_buffer_emit_word(&b->types_const_defs, spirv_builder_type_uint(b, width));
|
spirv_buffer_emit_word(&b->types_const_defs, spirv_builder_type_uint(b, width));
|
||||||
spirv_buffer_emit_word(&b->types_const_defs, result);
|
spirv_buffer_emit_word(&b->types_const_defs, result);
|
||||||
spirv_buffer_emit_word(&b->types_const_defs, 0);
|
/* this is the default value for spec constants;
|
||||||
|
* if any users need a different default, add a param to pass for it
|
||||||
|
*/
|
||||||
|
spirv_buffer_emit_word(&b->types_const_defs, 1);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue