mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
spirv: Fix SpvOpExpectKHR
This instruction behaves the same as *OpCopyObject* by making a copy of _Value_.
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
(cherry picked from commit 5df7be8017)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27740>
This commit is contained in:
parent
9d42171013
commit
5c0de4ed9b
1 changed files with 7 additions and 6 deletions
|
|
@ -4383,6 +4383,7 @@ vtn_handle_composite(struct vtn_builder *b, SpvOp opcode,
|
|||
break;
|
||||
}
|
||||
case SpvOpCopyObject:
|
||||
case SpvOpExpectKHR:
|
||||
vtn_copy_value(b, w[3], w[2]);
|
||||
return;
|
||||
|
||||
|
|
@ -6458,18 +6459,18 @@ vtn_handle_body_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||
vtn_handle_integer_dot(b, opcode, w, count);
|
||||
break;
|
||||
|
||||
case SpvOpBitcast:
|
||||
vtn_handle_bitcast(b, 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:
|
||||
break;
|
||||
|
||||
case SpvOpExpectKHR:
|
||||
break;
|
||||
|
||||
case SpvOpBitcast:
|
||||
vtn_handle_bitcast(b, w, count);
|
||||
break;
|
||||
|
||||
case SpvOpVectorExtractDynamic:
|
||||
case SpvOpVectorInsertDynamic:
|
||||
case SpvOpVectorShuffle:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue