broadcom/compiler: consider RT component size when lowering logic ops in Vulkan
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 14 May 2021 10:03:35 +0000 (12:03 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 May 2021 11:28:17 +0000 (11:28 +0000)
commit39c41169ba1998c11d486ef644b904d9f9c6fa02
tree7ef0b9fd6966f89e2a62a4b7ac38fe982bd4ba13
parentdf7185d0d14542eeec7f4159b423537f34381d6e
broadcom/compiler: consider RT component size when lowering logic ops in Vulkan

In Vulkan we configure our integer RTs to clamp automatically, so with logic
operations we need to be careful and avoid overflows by discarding any bits
that won't fit in the RT component size.

Fixes remaining CTS test failures in:
dEQP-VK.pipeline.logic_op.*

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10801>
src/broadcom/compiler/v3d_nir_lower_logic_ops.c