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:
Alessandro Astone
2025-05-23 22:29:22 +02:00
committed by Marge Bot
parent 33e0330baf
commit b519cb80a6

View File

@@ -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,