mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 22:20:14 +01:00
pan/bi: Implement packing ops between 32-bit vec1 and 16-bit vec2
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8358>
This commit is contained in:
parent
c9c637a707
commit
6f0eff548c
1 changed files with 2 additions and 0 deletions
|
|
@ -900,6 +900,7 @@ bi_emit_alu(bi_builder *b, nir_alu_instr *instr)
|
|||
* are the exceptions that need to handle swizzles specially. */
|
||||
|
||||
switch (instr->op) {
|
||||
case nir_op_pack_32_2x16:
|
||||
case nir_op_vec2:
|
||||
case nir_op_vec3:
|
||||
case nir_op_vec4: {
|
||||
|
|
@ -925,6 +926,7 @@ bi_emit_alu(bi_builder *b, nir_alu_instr *instr)
|
|||
case nir_op_vec16:
|
||||
unreachable("should've been lowered");
|
||||
|
||||
case nir_op_unpack_32_2x16:
|
||||
case nir_op_unpack_64_2x32_split_x:
|
||||
bi_mov_i32_to(b, dst, bi_src_index(&instr->src[0].src));
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue