spirv/nir_to_spirv: add expect assume op codes

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23115>
This commit is contained in:
norablackcat
2023-05-18 15:42:19 -06:00
committed by Marge Bot
parent 37fcbb375c
commit 25bc3d2824

View File

@@ -4601,6 +4601,7 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
case SpvCapabilityDotProductInputAll:
case SpvCapabilityDotProductInput4x8Bit:
case SpvCapabilityDotProductInput4x8BitPacked:
case SpvCapabilityExpectAssumeKHR:
break;
case SpvCapabilityLinkage:
@@ -6350,6 +6351,14 @@ vtn_handle_body_instruction(struct vtn_builder *b, SpvOp opcode,
vtn_handle_integer_dot(b, opcode, w, count);
break;
/* TODO: One day, we should probably do something with this information
* For now, though, it's safe to implement them as no-ops.
* Needed for Rusticl sycl support.
*/
case SpvOpAssumeTrueKHR:
case SpvOpExpectKHR:
break;
case SpvOpBitcast:
vtn_handle_bitcast(b, w, count);
break;