i965/fs: Default all constants to a location of -1
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 10 May 2016 20:54:58 +0000 (13:54 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 10 May 2016 22:25:30 +0000 (15:25 -0700)
commit203c786a73847fb07d805c4cc799b7c7d028695c
tree0d07ef67e8c9e922fb0c14eddaa9282bc22241a9
parentd36d11ad907c93407d1e984ab0931337936a4a37
i965/fs: Default all constants to a location of -1

Otherwise constants which aren't live get an undefined constant location.
When we go to set up param and pull_param we end up assigning all unused
uniforms to slot 0.  This cases the Vulkan driver to segfault because it
doesn't have pull_param.

This fixes bugs in the Vulkan driver introduced in c3fab3d000.

Reviewed-by: Mark Janes <mark.a.janes@intel.com>
src/mesa/drivers/dri/i965/brw_fs.cpp