i965/fs: add a helper function to create double immediates
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 9 Mar 2016 13:12:43 +0000 (14:12 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 13 Jul 2016 05:09:41 +0000 (07:09 +0200)
commit9e196e907ee87bff2b8c215df5e31a0cd1d1a322
treeb4f972d94c3f162637dd823ce9e914ac771b7e2b
parent93794145dd5959d905b65234cf87de3bff801aeb
i965/fs: add a helper function to create double immediates

Gen7 hardware does not support double immediates so these need
to be moved in 32-bit chunks to a regular vgrf instead. Instead
of doing this every time we need to create a DF immediate,
create a helper function that does the right thing depending
on the hardware generation.

v2:
- Define setup_imm_df() as an independent function (Curro)
- Create a specific builder to get rid of some instruction field
  assignments (Curro).

v3:
- Get devinfo from builder (Kenneth)

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp