summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe/sp_quad_depth_test.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2014-06-10 13:32:25 +1000
committerDave Airlie <airlied@redhat.com>2014-06-11 12:20:30 +1000
commit740d5bed77120aba4d815b5e2d28b109f214a800 (patch)
tree66a8773b0ed00d11e3cfa44fa78fef8edbed6095 /src/gallium/drivers/softpipe/sp_quad_depth_test.c
parentdc8fc39adac79cb8cbf59fc7ae5536536dceb52a (diff)
downloadexternal_mesa3d-740d5bed77120aba4d815b5e2d28b109f214a800.zip
external_mesa3d-740d5bed77120aba4d815b5e2d28b109f214a800.tar.gz
external_mesa3d-740d5bed77120aba4d815b5e2d28b109f214a800.tar.bz2
softpipe: add layered rendering support.
This adds support for GL 3.2 layered rendering to softpipe. Reviewed-by: Roland Scheidegger <sroland@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_quad_depth_test.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_quad_depth_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_quad_depth_test.c b/src/gallium/drivers/softpipe/sp_quad_depth_test.c
index 367218a..bac40c0 100644
--- a/src/gallium/drivers/softpipe/sp_quad_depth_test.c
+++ b/src/gallium/drivers/softpipe/sp_quad_depth_test.c
@@ -801,7 +801,7 @@ depth_test_quads_fallback(struct quad_stage *qs,
data.format = data.ps->format;
data.tile = sp_get_cached_tile(qs->softpipe->zsbuf_cache,
quads[0]->input.x0,
- quads[0]->input.y0, 0);
+ quads[0]->input.y0, quads[0]->input.layer);
data.clamp = !qs->softpipe->rasterizer->depth_clip;
near_val = qs->softpipe->viewport.translate[2] - qs->softpipe->viewport.scale[2];