summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_clip_tri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/compiler/brw_clip_tri.c')
-rw-r--r--src/intel/compiler/brw_clip_tri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_clip_tri.c b/src/intel/compiler/brw_clip_tri.c
index 8ccf9e49b20..194e6ab1d26 100644
--- a/src/intel/compiler/brw_clip_tri.c
+++ b/src/intel/compiler/brw_clip_tri.c
@@ -68,7 +68,7 @@ void brw_clip_tri_alloc_regs( struct brw_clip_compile *c,
i += c->nr_regs;
}
- if (c->vue_map.num_slots % 2) {
+ if (c->vue_map.num_slots % 2 && nr_verts > 0) {
/* The VUE has an odd number of slots so the last register is only half
* used. Fill the second half with zero.
*/