diff options
author | Eric Anholt <[email protected]> | 2016-11-10 15:23:19 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-11-12 18:46:35 -0800 |
commit | 4f527f12604269f15704bbd14a4962766afdfb9a (patch) | |
tree | 4f41e1f564a7f2a7fc702239757e64c7b75db522 /src/gallium/drivers/vc4/vc4_qir.c | |
parent | 93cdae44defdcc0a758e2f5376226b9944e1c91e (diff) |
vc4: Add a thread switch QIR instruction.
This will eventually be generated at the QIR level, so that
vc4_qir_schedule.c can arrange the separation of tex_strb from tex_result
correctly. It will also be important so that register allocation set the
register classes appropriately for values that are live across the switch.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c index a34eccf5091..f9c9703e3f9 100644 --- a/src/gallium/drivers/vc4/vc4_qir.c +++ b/src/gallium/drivers/vc4/vc4_qir.c @@ -82,6 +82,8 @@ static const struct qir_op_info qir_op_info[] = { [QOP_TEX_DIRECT] = { "tex_direct", 0, 2, true }, [QOP_TEX_RESULT] = { "tex_result", 1, 0, true }, + [QOP_THRSW] = { "thrsw", 0, 0, true }, + [QOP_LOAD_IMM] = { "load_imm", 0, 1 }, [QOP_LOAD_IMM_U2] = { "load_imm_u2", 0, 1 }, [QOP_LOAD_IMM_I2] = { "load_imm_i2", 0, 1 }, |