i965: Fix BRW_VARYING_SLOT_PAD handling in the scalar VS backend.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 10 Sep 2015 03:23:04 +0000 (20:23 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 26 Sep 2015 18:59:56 +0000 (11:59 -0700)
commit39d4b553a87228fd93bfdd7100d0687e55aec4b7
treea98d13e59649b18b5fc46fed07dcda1f66e6db06
parent511a86383b9d6490788a15cca2df791c6d63bfd7
i965: Fix BRW_VARYING_SLOT_PAD handling in the scalar VS backend.

We can't just break for padding slots.  Instead, treat them like
unwritten output variables, so we handle flushing and incrementing
urb_offset correctly.

Paul introduced the concept of padding slots back in 2011, but we've
never actually used them for anything.  So it's unsurprising that the
scalar VS backend didn't handle them quite right.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp