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:
committed by
Marge Bot
parent
33e0330baf
commit
b519cb80a6
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user