summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-10-17 23:17:52 +0200
committerMarek Olšák <[email protected]>2015-10-20 12:58:25 +0200
commit7c75f23cb92f7e4a55f2ae31df9274338ec60531 (patch)
tree58d9dab3579aa0a72848851fb0bbd96cd1910df6 /src
parente70c66197ea10cf052010c7352420a2ae0b0a50a (diff)
st/mesa: pass the clip distance array size to drivers
Reviewed-by: Ilia Mirkin <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_program.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 87571a88e78..75ccaf2f26b 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -395,6 +395,10 @@ st_translate_vertex_program(struct st_context *st,
if (ureg == NULL)
return false;
+ if (stvp->Base.Base.ClipDistanceArraySize)
+ ureg_property(ureg, TGSI_PROPERTY_NUM_CLIPDIST_ENABLED,
+ stvp->Base.Base.ClipDistanceArraySize);
+
if (ST_DEBUG & DEBUG_MESA) {
_mesa_print_program(&stvp->Base.Base);
_mesa_print_program_parameters(st->ctx, &stvp->Base.Base);
@@ -1049,6 +1053,10 @@ st_translate_program_common(struct st_context *st,
memset(outputMapping, 0, sizeof(outputMapping));
memset(out_state, 0, sizeof(*out_state));
+ if (prog->ClipDistanceArraySize)
+ ureg_property(ureg, TGSI_PROPERTY_NUM_CLIPDIST_ENABLED,
+ prog->ClipDistanceArraySize);
+
/*
* Convert Mesa program inputs to TGSI input register semantics.
*/