summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vs.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-10-17 22:50:11 +0200
committerMarek Olšák <marek.olsak@amd.com>2015-10-20 12:58:25 +0200
commit67f489ded3a4c575e203dc82368ebe645e72079a (patch)
tree579f430c3b2a5ad57a3fe3d73380b251a25a213f /src/mesa/drivers/dri/i965/brw_vs.c
parent8339585b1206232c1df165108ef6adadb0829ab0 (diff)
downloadexternal_mesa3d-67f489ded3a4c575e203dc82368ebe645e72079a.zip
external_mesa3d-67f489ded3a4c575e203dc82368ebe645e72079a.tar.gz
external_mesa3d-67f489ded3a4c575e203dc82368ebe645e72079a.tar.bz2
mesa: replace UsesClipDistance with ClipDistanceArraySize
This is more practical and needed by gallium. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c
index ba680a9..5db4b3a 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.c
+++ b/src/mesa/drivers/dri/i965/brw_vs.c
@@ -312,7 +312,7 @@ brw_vs_populate_key(struct brw_context *brw,
if (ctx->Transform.ClipPlanesEnabled != 0 &&
ctx->API == API_OPENGL_COMPAT &&
- !vp->program.Base.UsesClipDistanceOut) {
+ vp->program.Base.ClipDistanceArraySize == 0) {
key->nr_userclip_plane_consts =
_mesa_logbase2(ctx->Transform.ClipPlanesEnabled) + 1;
}