summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs.h
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-06-06 12:15:30 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2015-06-09 09:22:56 -0700
commit86e5afbfee5492235cab1a7be4ea49ac02be1644 (patch)
tree491cadbd1a98c03acc971a927e7ceaa1ec43a6e3 /src/mesa/drivers/dri/i965/brw_fs.h
parent65bd4159b35c7213e0ac27c6299495e08a105ab4 (diff)
downloadexternal_mesa3d-86e5afbfee5492235cab1a7be4ea49ac02be1644.zip
external_mesa3d-86e5afbfee5492235cab1a7be4ea49ac02be1644.tar.gz
external_mesa3d-86e5afbfee5492235cab1a7be4ea49ac02be1644.tar.bz2
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h
index 225a973..39e9503 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.h
+++ b/src/mesa/drivers/dri/i965/brw_fs.h
@@ -123,7 +123,8 @@ public:
void setup_payload_interference(struct ra_graph *g, int payload_reg_count,
int first_payload_node);
void setup_mrf_hack_interference(struct ra_graph *g,
- int first_mrf_hack_node);
+ int first_mrf_hack_node,
+ int *first_used_mrf);
int choose_spill_reg(struct ra_graph *g);
void spill_reg(int spill_reg);
void split_virtual_grfs();