i965/fs: demote_pull_constants() did not take into account double types
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Fri, 27 Nov 2015 11:52:22 +0000 (12:52 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 10 May 2016 09:25:09 +0000 (11:25 +0200)
commit03687ab77fea7893f8786ce407d6f4d108b28012
treeb05e0f56a74c775efc956174dbbc25bbf601527b
parentc3fab3d00095ed4a5693d5272073298f07dcb9b5
i965/fs: demote_pull_constants() did not take into account double types

The constants could be double, and it was allocating size for float types
for the destination register of varying pull constant loads.

Then the fs_visitor::validate() will complain.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_fs.cpp