mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 13:20:14 +01:00
tgsi: add support for TGSI_OPCODE_MOD in tgsi_exec
This commit is contained in:
parent
6d89abadbc
commit
f95169deb4
1 changed files with 12 additions and 1 deletions
|
|
@ -2977,6 +2977,17 @@ micro_xor(union tgsi_exec_channel *dst,
|
||||||
dst->u[3] = src0->u[3] ^ src1->u[3];
|
dst->u[3] = src0->u[3] ^ src1->u[3];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
micro_mod(union tgsi_exec_channel *dst,
|
||||||
|
const union tgsi_exec_channel *src0,
|
||||||
|
const union tgsi_exec_channel *src1)
|
||||||
|
{
|
||||||
|
dst->i[0] = src0->i[0] % src1->i[0];
|
||||||
|
dst->i[1] = src0->i[1] % src1->i[1];
|
||||||
|
dst->i[2] = src0->i[2] % src1->i[2];
|
||||||
|
dst->i[3] = src0->i[3] % src1->i[3];
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
micro_f2i(union tgsi_exec_channel *dst,
|
micro_f2i(union tgsi_exec_channel *dst,
|
||||||
const union tgsi_exec_channel *src)
|
const union tgsi_exec_channel *src)
|
||||||
|
|
@ -3680,7 +3691,7 @@ exec_instruction(
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TGSI_OPCODE_MOD:
|
case TGSI_OPCODE_MOD:
|
||||||
assert (0);
|
exec_vector_binary(mach, inst, micro_mod, TGSI_EXEC_DATA_INT, TGSI_EXEC_DATA_INT);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TGSI_OPCODE_XOR:
|
case TGSI_OPCODE_XOR:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue