summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_clip.h
diff options
context:
space:
mode:
authorChris Forbes <chrisf@ijw.co.nz>2013-07-07 22:51:02 +1200
committerChris Forbes <chrisf@ijw.co.nz>2013-08-16 07:24:56 +1200
commit4f739646b03f3d6e70461749ca0c0f3cb7390d75 (patch)
tree6eba3436526d5f4c795c6400093dac6d5e9ae582 /src/mesa/drivers/dri/i965/brw_clip.h
parentee0b8e0f063597c4f9dacaa3638ebd8875de151c (diff)
downloadexternal_mesa3d-4f739646b03f3d6e70461749ca0c0f3cb7390d75.zip
external_mesa3d-4f739646b03f3d6e70461749ca0c0f3cb7390d75.tar.gz
external_mesa3d-4f739646b03f3d6e70461749ca0c0f3cb7390d75.tar.bz2
i965: allow 8 user clip planes on CTG+
There's no need to use a clip flag for NEGW on these gens, so no reason we can't just enable 8 planes. V2: - Bump (and document!) MAX_VERTS in the clip code. - Fix clip flag masks in the clip unit state and in the shader prolog - Move this to the end of the series for less breakage. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_clip.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_clip.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_clip.h b/src/mesa/drivers/dri/i965/brw_clip.h
index 1f6ef39..f26d75d 100644
--- a/src/mesa/drivers/dri/i965/brw_clip.h
+++ b/src/mesa/drivers/dri/i965/brw_clip.h
@@ -36,7 +36,11 @@
#include "brw_context.h"
#include "brw_eu.h"
-#define MAX_VERTS (3+6+6)
+/* Initial 3 verts, plus at most 6 additional verts from intersections
+ * with fixed planes, plus at most 8 additional verts from intersections
+ * with user clip planes
+ */
+#define MAX_VERTS (3+6+8)
/* Note that if unfilled primitives are being emitted, we have to fix
* up polygon offset and flatshading at this point: