OSDN Git Service

i965/fs: Don't let the EOT send message interfere with the MRF hack
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 6 Jun 2015 19:15:30 +0000 (12:15 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 18 Jun 2015 12:42:59 +0000 (13:42 +0100)
commitbb00457f49177d8d43417855f843887de3148e99
tree78c839422bda93099477a93c544489151d700f6e
parentf6e743ea389b4b2e068bb6d841a3a6c80bb80316
i965/fs: Don't let the EOT send message interfere with the MRF hack

Previously, we just put the message for the EOT send as high in the file as
it would go.  This is because the register pre-filling hardware will stop
all over the early registers in the file in preparation for the next thread
while you're still sending the last message.  However, if something happens
to spill, then the MRF hack interferes with the EOT send message and, if
things aren't scheduled nicely, will stomp on it.

Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90520
Reviewed-by: Neil Roberts <neil@linux.intel.com>
(cherry picked from commit 86e5afbfee5492235cab1a7be4ea49ac02be1644)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Conflicts:
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp