mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-17 06:20:27 +01:00
ac/llvm: implement nir_op_pack_32_4x8
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12617>
This commit is contained in:
parent
40a0935899
commit
f7cdd49a09
1 changed files with 2 additions and 0 deletions
|
|
@ -582,6 +582,7 @@ static void visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr)
|
|||
case nir_op_cube_face_index_amd:
|
||||
src_components = 3;
|
||||
break;
|
||||
case nir_op_pack_32_4x8:
|
||||
case nir_op_pack_64_4x16:
|
||||
src_components = 4;
|
||||
break;
|
||||
|
|
@ -1153,6 +1154,7 @@ static void visit_alu(struct ac_nir_context *ctx, const nir_alu_instr *instr)
|
|||
break;
|
||||
}
|
||||
|
||||
case nir_op_pack_32_4x8:
|
||||
case nir_op_pack_32_2x16: {
|
||||
result = LLVMBuildBitCast(ctx->ac.builder, src[0],
|
||||
ctx->ac.i32, "");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue