summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2012-08-29 15:11:49 -0700
committerPaul Berry <[email protected]>2012-09-28 11:20:39 -0700
commit62bc4af0e18f76dd30a4d5ae6d45a365a1fa226f (patch)
treeef04bdb888fa4de2dad3db8d3356a04e40ffc099 /SConstruct
parent68da5dfc2c2e9c0aca47431076be0cd43406d4aa (diff)
i965/blorp: don't reduce stencil alignment restrictions when multisampling.
When blitting to a stencil buffer, we need to align the rectangle we send down the rendering pipeline, to account for the fact that the stencil buffer uses a W-tiled layout, but we are configuring its surface state as Y-tiled. Previously, when the stencil buffer was multisampled, we assumed that we could reduce the amount of alignment that was necessary, since each pixel occupies a block of 2x2 or 4x2 samples in the stencil buffer. That would have been correct if the coordinates we were adjusting were measured in pixels. However, the conversion from pixel coordinates to coordinates within the interleaved buffer has already been done; therefore the full alignment restriction applies. Note: the reason this mistake wasn't previously uncovered by piglit tests is because it is being masked by another mistake: the blorp engine is using overly conservative alignment restrictions when doing stencil blits. The overly conservative alignment restrictions will be removed in the patch that follows. Doing this fix now will prevent the subsequent patch from introducing regressions. Acked-by: Eric Anholt <[email protected]> (cherry picked from commit 1a75063d5f829547b75b60ae64bddf3905b4cb8f)
Diffstat (limited to 'SConstruct')
0 files changed, 0 insertions, 0 deletions