diff options
author | Eric Anholt <[email protected]> | 2016-06-03 15:04:57 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-07-04 16:33:22 -0700 |
commit | 2a8973fb78026b830786aa74b07805730ae891ca (patch) | |
tree | c4b53eb422a97bbb602007733cd310da6f231e06 | |
parent | 44df374a9c91b87be0f5ebccadc52760ebe95871 (diff) |
vc4: Mark texturing setup instructions as having side effects.
We need to not DCE them even though they don't have a destination in QIR.
We also shouldn't relocate them in vc4_opt_vpm. Neither of these things
happen, but I'm about to make DCE consider instructions with a NULL
destination.
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c index b9676adb3af..4cdc8a2baae 100644 --- a/src/gallium/drivers/vc4/vc4_qir.c +++ b/src/gallium/drivers/vc4/vc4_qir.c @@ -75,11 +75,11 @@ static const struct qir_op_info qir_op_info[] = { [QOP_FRAG_Z] = { "frag_z", 1, 0 }, [QOP_FRAG_W] = { "frag_w", 1, 0 }, - [QOP_TEX_S] = { "tex_s", 0, 2 }, - [QOP_TEX_T] = { "tex_t", 0, 2 }, - [QOP_TEX_R] = { "tex_r", 0, 2 }, - [QOP_TEX_B] = { "tex_b", 0, 2 }, - [QOP_TEX_DIRECT] = { "tex_direct", 0, 2 }, + [QOP_TEX_S] = { "tex_s", 0, 2, true }, + [QOP_TEX_T] = { "tex_t", 0, 2, true }, + [QOP_TEX_R] = { "tex_r", 0, 2, true }, + [QOP_TEX_B] = { "tex_b", 0, 2, true }, + [QOP_TEX_DIRECT] = { "tex_direct", 0, 2, true }, [QOP_TEX_RESULT] = { "tex_result", 1, 0, true }, [QOP_LOAD_IMM] = { "load_imm", 0, 1 }, |