diff options
author | Eric Anholt <[email protected]> | 2015-01-10 14:07:12 +1300 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-01-10 14:35:24 +1300 |
commit | a58ae83882b3ad3ecb53271f42cf1fd8f9c2907c (patch) | |
tree | 2a7cd5a8057ffb943091a1db1e950d16a2e64461 /src/gallium/drivers/vc4/vc4_qir.c | |
parent | 06b6a72a3e4a36310cd664aa7e881881aeab146f (diff) |
vc4: Redo VPM reads as a read file.
This will let us do copy propagation of the VPM reads.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c index 5f3b8ddc445..4f73932e233 100644 --- a/src/gallium/drivers/vc4/vc4_qir.c +++ b/src/gallium/drivers/vc4/vc4_qir.c @@ -79,7 +79,6 @@ static const struct qir_op_info qir_op_info[] = { [QOP_PACK_8C_F] = { "pack_8c_f", 1, 2, false, true }, [QOP_PACK_8D_F] = { "pack_8d_f", 1, 2, false, true }, [QOP_PACK_SCALED] = { "pack_scaled", 1, 2, false, true }, - [QOP_VPM_READ] = { "vpm_read", 0, 1, true }, [QOP_TLB_DISCARD_SETUP] = { "discard", 0, 1, true }, [QOP_TLB_STENCIL_SETUP] = { "tlb_stencil_setup", 0, 1, true }, [QOP_TLB_Z_WRITE] = { "tlb_z", 0, 1, true }, @@ -152,6 +151,9 @@ qir_has_side_effects(struct vc4_compile *c, struct qinst *inst) c->input_semantics[inst->src[i].index].semantic == 0xff) { return true; } + + if (inst->src[i].file == QFILE_VPM) + return true; } if (inst->dst.file == QFILE_VPM) |