mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-15 09:08:20 +02:00
asahi: Avoid AND-ing with string literal in static_assert
Some compilers have trouble dealing with this, including the clang prebuilts used in older AOSP trees. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35137>
This commit is contained in:
parent
33e0330baf
commit
b519cb80a6
1 changed files with 1 additions and 1 deletions
|
|
@ -2552,7 +2552,7 @@ hk_flush_dynamic_state(struct hk_cmd_buffer *cmd, struct hk_cs *cs,
|
|||
|
||||
if (IS_DIRTY(CB_BLEND_CONSTANTS)) {
|
||||
static_assert(sizeof(desc->root.draw.blend_constant) ==
|
||||
sizeof(dyn->cb.blend_constants) &&
|
||||
sizeof(dyn->cb.blend_constants),
|
||||
"common size");
|
||||
|
||||
memcpy(desc->root.draw.blend_constant, dyn->cb.blend_constants,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue