diff options
author | Paul Berry <[email protected]> | 2012-04-06 12:14:28 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2012-04-10 11:19:05 -0700 |
commit | a27c7d80afc3160a0face4b8781bf921229bc3cc (patch) | |
tree | af77205abdc10893e9ddd12bfd64bdd36a236721 /docs/helpwanted.html | |
parent | 272bc489762c6946e3c0314e9e035b281c567310 (diff) |
i965: Stop lying about cpp and height of a stencil buffer.
When using a separate stencil buffer, i965 requires that the pitch of
the buffer (in the 3DSTATE_STENCIL_BUFFER command) be specified as 2x
the actual pitch.
Previously this was accomplished by doubling the "cpp" and "pitch"
values stored in the intel_region data structure, and halving the
height. However, this was confusing, and it led to a subtle (but
benign) bug: since a stencil buffer is W-tiled, its true height must
be aligned to a multiple of 64; we were accidentally aligning its faux
height to a multiple of 64, causing memory to be wasted.
Note that for window system stencil buffers, the DDX also doubles the
cpp and pitch values. To facilitate fixing this DDX server bug in the
future, we fix the cpp and pitch values we receive from the X server
only if cpp has the "incorrect" value of 2.
Acked-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
v2: Clarify comments about the DDX.
Diffstat (limited to 'docs/helpwanted.html')
0 files changed, 0 insertions, 0 deletions