vc4: Allow dead code elimination of instructions that read uniforms.

This commit is contained in:
Eric Anholt 2014-09-16 16:02:27 -07:00
parent 5e90ed79f6
commit 44b8eb743d
1 changed files with 1 additions and 2 deletions

View File

@ -120,8 +120,7 @@ bool
qir_has_side_effects(struct qinst *inst)
{
for (int i = 0; i < qir_get_op_nsrc(inst->op); i++) {
if (inst->src[i].file == QFILE_VARY ||
inst->src[i].file == QFILE_UNIF)
if (inst->src[i].file == QFILE_VARY)
return true;
}