diff options
author | Paul Berry <[email protected]> | 2012-04-26 06:35:56 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2012-05-07 10:50:33 -0700 |
commit | 714b4f6184db84a738cf2d063980f0e19ab03b4b (patch) | |
tree | 6410db6577da33deaa752202a85c50376f769e00 /docs/MESA_window_pos.spec | |
parent | a683012a80a3408b3b71f22b2a97d9eaaac11a46 (diff) |
i965/Gen7: Work around GPU hangs due to misaligned depth coordinate offsets.
In i965 Gen7, Mesa has for a long time used the "depth coordinate
offset X/Y" settings (in 3DSTATE_DEPTH_BUFFER) to cause the GPU to
render to miplevels other than 0. Unfortunately, this doesn't work,
because these offsets must be aligned to multiples of 8, and miplevels
in the depth buffer are only guaranteed to be aligned to multiples of
4. When the offsets aren't aligned to a multiple of 8, the GPU
sometimes hangs.
As a temporary measure, to avoid GPU hangs, this patch smashes the 3
LSB's of "depth coordinate offset X/Y" to 0. This results in
incorrect rendering to mipmapped depth textures, but that seems like a
reasonable stopgap while we figure out a better solution.
Avoids GPU hangs in piglit test "depthstencil-render-miplevels" at
texture sizes that are not powers of 2.
Reviewed-by: Chad Verace <[email protected]>
Diffstat (limited to 'docs/MESA_window_pos.spec')
0 files changed, 0 insertions, 0 deletions