OSDN Git Service

i965/fs: Fix rendering corruption in unigine tropics.
authorEric Anholt <eric@anholt.net>
Fri, 27 Jan 2012 20:54:11 +0000 (12:54 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 30 Jan 2012 19:32:55 +0000 (11:32 -0800)
commite910241e9754b6e673ed0fc3133c8b1de56e76c7
tree4094c354171a3f8878b8f1dec43e6852f6d9cf7e
parentb9aab8b3b3769b9c5121686efe3446dae770b951
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 <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_structs.h