Commit 5bf74754 authored by Rob Clark's avatar Rob Clark 💬 Committed by Marge Bot
Browse files

ir3: handle 16b op_i2b1


Signed-off-by: Danylo Piliaiev's avatarDanylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <mesa/mesa!10054>
parent ceb99c33
......@@ -399,7 +399,9 @@ emit_alu(struct ir3_context *ctx, nir_alu_instr *alu)
/* i2b1 will appear when translating from nir_load_ubo or
* nir_intrinsic_load_ssbo, where any non-zero value is true.
*/
dst[0] = ir3_CMPS_S(b, src[0], 0, create_immed(b, 0), 0);
dst[0] = ir3_CMPS_S(b,
src[0], 0,
create_immed_typed(b, 0, bs[0] == 16 ? TYPE_U16 : TYPE_U32), 0);
dst[0]->cat2.condition = IR3_COND_NE;
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment