summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2011-09-27 12:57:08 -0700
committerPaul Berry <[email protected]>2011-10-06 19:29:14 -0700
commit018ea68d8780ab5baeef0b8122b8410e5e55ae6d (patch)
treefac8a7a1bcc65420a1d29edf418124753348d124 /src/mapi
parentf4f686e825ad2d64e50fb9e2491ef60507d59c38 (diff)
i965 Gen6+: De-compact clip planes.
Previously, if the user enabled a non-consecutive set of clip planes (e.g. 0, 1, and 3), the driver would compact them down to a consecutive set starting at 0. This optimization was of dubious value, and complicated the implementation of gl_ClipDistance. This patch changes the driver so that with Gen6 and later chipsets, we no longer compact the clip planes. However, we still discard any clip planes beyond the highest number that is in use, so performance should not be affected for applications that use clip planes consecutively from 0. With chipsets previous to Gen6, we still compact the clip planes, since the pre-Gen6 clipper thread relies on this behavior. Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mapi')
0 files changed, 0 insertions, 0 deletions