i965/vs: Fix NULL pointer dereference in pre-Gen6 push constant loading.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 30 Aug 2011 19:34:13 +0000 (12:34 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 2 Sep 2011 19:17:06 +0000 (12:17 -0700)
commitee41383ab31f6ef5f1d18961de78371d4f52065b
tree4b830fef0de52927bda98f6070bad2e1de5470c9
parent7fdbedac14637b5e8990cb639bd4ddae28c46994
i965/vs: Fix NULL pointer dereference in pre-Gen6 push constant loading.

According to the comment, we need to load /some/ push constants on
pre-Gen6 hardware or the GPU will hang.  The existing code set these
bogus parameters to NULL pointers; unfortunately, the code in
brw_curbe.c that loads them dereferences those pointers.  So, change
them to be pointers to an actual floating point value of 0.0.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp