i965/vs: Fix regression on pre-gen6 with no VS uniforms in use.
authorEric Anholt <eric@anholt.net>
Fri, 30 Aug 2013 17:45:00 +0000 (10:45 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 30 Aug 2013 18:29:50 +0000 (11:29 -0700)
commit09e2df5961cfe04925bdd820e6ea59af3ba783f6
treee55815c8bc2ce2397ade26fcf3575edeabb1d678
parentf7217b99f243738f941a5d009c68387dfadcb50a
i965/vs: Fix regression on pre-gen6 with no VS uniforms in use.

df06745c5adb524e15d157f976c08f1718f08efa made it so that we didn't
allocate extra uniform space for unused clip planes, which also
incidentally made us not allocate any space at all, which we were relying
on for this no-uniforms case.  Instead of putting the knowledge of this
special HW exception into the thing that normally preallocates prog_data
for us, just allocate it here.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68766
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4.cpp