i965: Correct gen6+ guardband calculation.
authorEric Anholt <eric@anholt.net>
Wed, 23 Jan 2013 22:30:05 +0000 (14:30 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 25 Jan 2013 14:04:52 +0000 (09:04 -0500)
commit416326e33780fda0580292f9c2ace0b7c2c520e3
treec2db06b5ddda33ee2ffabdb1bfa073eeb8048fd3
parent9db2098d18dd28cbb4f9f98ec9e8f9d579608c38
i965: Correct gen6+ guardband calculation.

Too much attention was paid to the first paragraphs, and not enough to
the last little note that "oh, by the way, the rendered things
themselves still have to be clipped to just 8192 wide/high".

Fixes GTF's clip.c test with 4096 or higher width on ivb, where one of
the triangles got the upper half of its pixels dropped.

Tested-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/gen6_viewport_state.c
src/mesa/drivers/dri/i965/gen7_viewport_state.c