summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe/sp_context.h
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_context.h
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_context.h')
-rw-r--r--src/gallium/drivers/softpipe/sp_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_context.h b/src/gallium/drivers/softpipe/sp_context.h
index a56e8a8..aac35f7 100644
--- a/src/gallium/drivers/softpipe/sp_context.h
+++ b/src/gallium/drivers/softpipe/sp_context.h
@@ -121,6 +121,9 @@ struct softpipe_context {
/** Which vertex shader output slot contains point size */
int psize_slot;
+ /** Which vertex shader output slot contains layer */
+ int layer_slot;
+
/** The reduced version of the primitive supplied by the state tracker */
unsigned reduced_api_prim;