diff options
author | Jason Ekstrand <[email protected]> | 2017-01-21 03:50:42 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-02-06 17:40:14 -0800 |
commit | f3c068c5c89c8c3dce257ecc2b640f375d3f4836 (patch) | |
tree | 44013268b9880123216038c15076a013f255ff7a /docs/perf.html | |
parent | 89ad7f1be6a607b33ffb388516b5d0547b491c33 (diff) |
i965: Use a better guardband calculation.
(Patch co-authored by Jason and Ken.)
We scaled the guardband based on the viewport size, but failed to
take into account the translation portion of the viewport transform.
This meant the guardband was always centered around the origin.
We want it to be centered around the screen-space drawing area,
which is the intersection of the viewport and the render target.
At best, getting this wrong would reduce the guardband's effectiveness
in some cases. At worst, it might break things - objects outside of the
guardband are trivially rejected, so getting the guardband in the wrong
place and leaving guardband clipping enabled could cause problems.
v2: drop clamping of positive maximums.
Cc: "17.0" <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'docs/perf.html')
0 files changed, 0 insertions, 0 deletions