summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs.h
diff options
context:
space:
mode:
authorIago Toral Quiroga <itoral@igalia.com>2016-03-09 14:12:43 +0100
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>2016-07-13 07:09:41 +0200
commit9e196e907ee87bff2b8c215df5e31a0cd1d1a322 (patch)
treeb4f972d94c3f162637dd823ce9e914ac771b7e2b /src/mesa/drivers/dri/i965/brw_fs.h
parent93794145dd5959d905b65234cf87de3bff801aeb (diff)
downloadexternal_mesa3d-9e196e907ee87bff2b8c215df5e31a0cd1d1a322.zip
external_mesa3d-9e196e907ee87bff2b8c215df5e31a0cd1d1a322.tar.gz
external_mesa3d-9e196e907ee87bff2b8c215df5e31a0cd1d1a322.tar.bz2
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h
index 1f88f8f..ca977d4 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.h
+++ b/src/mesa/drivers/dri/i965/brw_fs.h
@@ -512,3 +512,5 @@ void shuffle_64bit_data_for_32bit_write(const brw::fs_builder &bld,
const fs_reg &dst,
const fs_reg &src,
uint32_t components);
+fs_reg setup_imm_df(const brw::fs_builder &bld,
+ double v);