i965/gen7: Add CC viewport setup to blorp code.
authorEric Anholt <eric@anholt.net>
Mon, 21 May 2012 21:58:17 +0000 (14:58 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 23 May 2012 17:18:27 +0000 (10:18 -0700)
commit39a91be20d0592af4f93458364d027b7ade6b2ba
tree005f40ac0f1006547e590c2322f338922ff08aa5
parent54308f78a2f8675bfd854761f9cd8a6b71e119d0
i965/gen7: Add CC viewport setup to blorp code.

When doing fast clears, a fulsim warning said that the batch was being
emitted without the viewport set up.  While the fast clear pass I was
looking at doesn't use the clear value, the later resolves which also
didn't set up the vieport would trigger the same.  It's not obvious
from the error message whether it meant "fast clear value gets clamped
to something you haven't defined" or "fast clear value doesn't get
clamped, and I saw it was out of the current (uninitialized) range,
and you probably wanted it clamped to that (uninitialized) range".  Be
paranoid and assume the first case.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/gen7_blorp.cpp