vtn: Allow for OpCopyLogical with different but compatible types
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Fri, 17 Nov 2023 12:39:52 +0000 (13:39 +0100)
committerEric Engestrom <eric@engestrom.ch>
Wed, 10 Jan 2024 10:28:59 +0000 (10:28 +0000)
commita53c9acd822f9f9e31cc295be6c01bae388b3e98
tree22480eb6fbbe99811991bf3042a2db32dcfc3e9e
parent1c476c7742d562181f8684cf20eab4aa2d6ce755
vtn: Allow for OpCopyLogical with different but compatible types

> Result Type must not equal the type of Operand (see OpCopyObject),
> but Result Type must logically match the Operand type.

Allow for this by setting the expected type and making sure, that both
types match.

cc: mesa-stable

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10163
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26252>
(cherry picked from commit 4c363acf94a04a9a885ed4025e628520354186dc)
.pick_status.json
src/compiler/spirv/spirv_to_nir.c