summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2011-09-23 21:33:50 -0700
committerPaul Berry <[email protected]>2011-09-28 11:38:03 -0700
commite7da40afe84349a640fe15e3af408a0dfe880e85 (patch)
tree9cf7f8a407bb4c4cb77f5c42fe58ad421d6dba06 /docs
parent7e2b23ba85a89282565d9375b0a885cc48e66c82 (diff)
i965 new VS: don't share clip plane constants in pre-GEN6
In pre-GEN6, when using clip planes, both the vertex shader and the clipper need access to the client-supplied clip planes, since the vertex shader needs them to set the clip flags, and the clipper needs them to determine where to insert new vertices. With the old VS backend, we used a clever optimization to avoid placing duplicate copies of these planes in the CURBE: we used the same block of memory for both the clipper and vertex shader constants, with the clip planes at the front of it, and then we instructed the clipper to read just the initial part of this block containing the clip planes. This optimization was tricky, of dubious value, and not completely working in the new VS backend, so I've removed it. Now, when using the new VS backend, separate parts of the CURBE are used for the clipper and the vertex shader. Note that this doesn't affect the number of push constants available to the vertex shader, it simply causes the CURBE to occupy a few more bytes of URB memory. The old VS backend is unaffected. GEN6+, which does clipping entirely in hardware, is also unaffected. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions