Mesa (main): tu/clear_blit: use || when working with bools
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Dec 28 03:41:03 UTC 2021
Module: Mesa
Branch: main
Commit: ff7aee2ac9898d71204f5a71ce02202aced5e803
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ff7aee2ac9898d71204f5a71ce02202aced5e803
Author: Thomas H.P. Andersen <phomes at gmail.com>
Date: Tue Dec 28 02:24:42 2021 +0100
tu/clear_blit: use || when working with bools
Fixes a warning with clang
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14315>
---
src/freedreno/vulkan/tu_clear_blit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/freedreno/vulkan/tu_clear_blit.c b/src/freedreno/vulkan/tu_clear_blit.c
index c46e2f8edf4..3524313666c 100644
--- a/src/freedreno/vulkan/tu_clear_blit.c
+++ b/src/freedreno/vulkan/tu_clear_blit.c
@@ -2690,7 +2690,7 @@ tu_emit_blit(struct tu_cmd_buffer *cmd,
tu_cs_emit_regs(cs, A6XX_RB_BLIT_INFO(
.unk0 = !resolve,
.gmem = !resolve,
- .sample_0 = vk_format_is_int(attachment->format) |
+ .sample_0 = vk_format_is_int(attachment->format) ||
vk_format_is_depth_or_stencil(attachment->format)));
tu_cs_emit_pkt4(cs, REG_A6XX_RB_BLIT_DST_INFO, 4);
More information about the mesa-commit
mailing list