summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_fs.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-08-26 10:00:14 -0700
committerJason Ekstrand <[email protected]>2017-11-07 10:37:52 -0800
commit030d2b5016360caf44ebfa3f6951a6d676316a89 (patch)
tree8465290524227ba73bec75dda0c467fb40bbd126 /src/intel/compiler/brw_fs.h
parent6197a6b7ac6ff03e87a939311329fa0cb4af7f4c (diff)
i965/fs: Return a fs_reg from shuffle_64bit_data_for_32bit_write
All callers of this function allocate a fs_reg expressly to pass into it. It's much easier if we just let the helper allocate the register. While we're here, we switch it to doing the MOVs with an integer type so that we don't accidentally canonicalize floats on half of a double. Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_fs.h')
-rw-r--r--src/intel/compiler/brw_fs.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/intel/compiler/brw_fs.h b/src/intel/compiler/brw_fs.h
index 20405750b78..b070d3888eb 100644
--- a/src/intel/compiler/brw_fs.h
+++ b/src/intel/compiler/brw_fs.h
@@ -493,10 +493,9 @@ void shuffle_32bit_load_result_to_64bit_data(const brw::fs_builder &bld,
const fs_reg &src,
uint32_t components);
-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 shuffle_64bit_data_for_32bit_write(const brw::fs_builder &bld,
+ const fs_reg &src,
+ uint32_t components);
fs_reg setup_imm_df(const brw::fs_builder &bld,
double v);