r600/sfn: Fix mapping for f32tof64 and f64tof32
We define the mapping based on the vector unit opcode. Closes #3013 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5187>
This commit is contained in:
@@ -61,7 +61,7 @@ enum EAluOp {
|
||||
op0_nop = 26,
|
||||
op2_mul_64 = 27,
|
||||
op1_flt64_to_flt32 = 28,
|
||||
op1v_flt32_to_flt64 = 29,
|
||||
op1_flt32_to_flt64 = 29,
|
||||
op2_pred_setgt_uint = 30,
|
||||
op2_pred_setge_uint = 31,
|
||||
op2_pred_sete = 32,
|
||||
@@ -190,7 +190,7 @@ enum EAluOp {
|
||||
op2_add_64 = 203,
|
||||
op1_mova_int = 204,
|
||||
op1v_flt64_to_flt32 = 205,
|
||||
op1_flt32_to_flt64 = 206,
|
||||
op1v_flt32_to_flt64 = 206,
|
||||
op2_sad_accum_prev_uint = 207,
|
||||
op2_dot = 208,
|
||||
op2_mul_prev = 209,
|
||||
|
@@ -1258,8 +1258,8 @@ const std::map<EAluOp, int> opcode_map = {
|
||||
{op1_mov, ALU_OP1_MOV},
|
||||
{op0_nop, ALU_OP0_NOP},
|
||||
{op2_mul_64, ALU_OP2_MUL_64},
|
||||
{op1_flt64_to_flt32, ALU_OP1_FLT64_TO_FLT32},
|
||||
{op1v_flt64_to_flt32, ALU_OP1_FLT32_TO_FLT64},
|
||||
{op1v_flt64_to_flt32, ALU_OP1_FLT64_TO_FLT32},
|
||||
{op1v_flt32_to_flt64, ALU_OP1_FLT32_TO_FLT64},
|
||||
{op2_pred_setgt_uint, ALU_OP2_PRED_SETGT_UINT},
|
||||
{op2_pred_setge_uint, ALU_OP2_PRED_SETGE_UINT},
|
||||
{op2_pred_sete, ALU_OP2_PRED_SETE},
|
||||
|
Reference in New Issue
Block a user