diff options
author | Eric Anholt <[email protected]> | 2012-01-27 12:54:11 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-01-30 11:32:55 -0800 |
commit | e910241e9754b6e673ed0fc3133c8b1de56e76c7 (patch) | |
tree | 4094c354171a3f8878b8f1dec43e6852f6d9cf7e /src/mesa/drivers/dri/i965/brw_eu_emit.c | |
parent | b9aab8b3b3769b9c5121686efe3446dae770b951 (diff) |
i965/fs: Fix rendering corruption in unigine tropics.
We were allocating registers into the MRF hack region, resulting in
sparkly renering in a few of the scenes. We could do better
allocation by making an MRF class, having MRFs conflict with the
corresponding GRFs, and tracking the live intervals of the "MRF"s and
setting up the conflicts. But this is way easier for the moment.
NOTE: This is a candidate for the 8.0 branch.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_eu_emit.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu_emit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index 9929739094a..33471576446 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c +++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c @@ -95,7 +95,7 @@ gen7_convert_mrf_to_grf(struct brw_compile *p, struct brw_reg *reg) struct intel_context *intel = &p->brw->intel; if (intel->gen == 7 && reg->file == BRW_MESSAGE_REGISTER_FILE) { reg->file = BRW_GENERAL_REGISTER_FILE; - reg->nr += 112; + reg->nr += GEN7_MRF_HACK_START; } } |