diff options
author | Paul Berry <[email protected]> | 2013-03-08 12:03:10 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-03-15 11:52:33 -0700 |
commit | c5d5827951fb321a58cc781b4e386551035ebf1a (patch) | |
tree | b13f3e45a865be7308e016ddba7f71acd15e72fc /src/gallium/SConscript | |
parent | eed6baf7621fa94e7888f8079b155fc67a08540c (diff) |
i965: Apply depthstencil alignment workaround when doing fast clears.
Fast depth clears have the same depth/stencil alignment requirements
as other drawing operations. Therefore, we need to call
brw_workaround_depthstencil_alignment() from both the clear and
drawing paths.
Without this fix, we get image corruption if the following conditions
hold: (a) the first ever drawing operation to a depth miplevel (or the
first drawing operation after having used the texture for sampling) is
a clear, (b) the depth miplevel has a size that is eligible for fast
depth clears, and (c) the depth miplevel has an offset within the
miptree that isn't 8x8 aligned.
Fixes piglit "depthstencil-render-miplevels" tests with size 273.
NOTE: This is a candidate for stable branches
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/SConscript')
0 files changed, 0 insertions, 0 deletions