diff options
author | Roland Scheidegger <sroland@vmware.com> | 2013-05-01 17:54:08 +0200 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2013-05-03 21:36:20 +0200 |
commit | ae507b6260f00638b63c22de811cc63b379698bb (patch) | |
tree | 55dfcd9f6f8559916bdde5f4e6ae7e4f3fe51468 /src/gallium/drivers/llvmpipe/lp_scene.c | |
parent | e495d88453076a4fe552502d66d6a3869ab70e4a (diff) | |
download | external_mesa3d-ae507b6260f00638b63c22de811cc63b379698bb.zip external_mesa3d-ae507b6260f00638b63c22de811cc63b379698bb.tar.gz external_mesa3d-ae507b6260f00638b63c22de811cc63b379698bb.tar.bz2 |
llvmpipe: get rid of depth swizzling.
Eliminating this we no longer need to copy between linear and swizzled layout.
This is probably not quite ideal since it's a bit more work for now, could do
some optimizations by moving depth testing outside the fragment shader loop
(but tricky for early depth test as we don't have neither the mask nor the
interpolated z in the right order handy).
The large amount of tile/untile code is no longer needed will be deleted
in next commit.
No piglit regressions.
v2: change a forgotten LAYOUT_NONE to LAYOUT_LINEAR.
v3: fix (bogus) uninitialized variable warnings, add comments, fix a bad type
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_scene.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_scene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_scene.c b/src/gallium/drivers/llvmpipe/lp_scene.c index a888586..e05ea75 100644 --- a/src/gallium/drivers/llvmpipe/lp_scene.c +++ b/src/gallium/drivers/llvmpipe/lp_scene.c @@ -185,7 +185,7 @@ lp_scene_begin_rasterization(struct lp_scene *scene) zsbuf->u.tex.level, zsbuf->u.tex.first_layer, LP_TEX_USAGE_READ_WRITE, - LP_TEX_LAYOUT_NONE); + LP_TEX_LAYOUT_LINEAR); } } |