intel/fs: Fix implied_mrf_writes() for headerless FB writes.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Francisco Jerez 2017-01-13 14:18:22 -08:00 committed by Jason Ekstrand
parent 90643689aa
commit dda31a7bbc
1 changed files with 2 additions and 1 deletions

View File

@ -1007,7 +1007,8 @@ fs_visitor::implied_mrf_writes(fs_inst *inst) const
case SHADER_OPCODE_SAMPLEINFO:
return 1;
case FS_OPCODE_FB_WRITE:
return 2;
case FS_OPCODE_REP_FB_WRITE:
return inst->src[0].file == BAD_FILE ? 0 : 2;
case FS_OPCODE_UNIFORM_PULL_CONSTANT_LOAD:
case SHADER_OPCODE_GEN4_SCRATCH_READ:
return 1;