summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2017-08-24 16:04:26 -0700
committerMatt Turner <[email protected]>2017-10-20 15:00:16 -0700
commit4c857d1f3bffc38d0aeed56ee8074979435ddd7a (patch)
tree69a1b40320d1243345e8bd98839b9f3ef72a6cb5 /src/intel
parent59fb59ad54d368683d5cc3b149f021452bddc05f (diff)
i965: Move brw_reg_type_is_floating_point to brw_reg_type.h
I'm going to call this from brw_inst.h, and I don't want to have to include all of brw_reg.h. Reviewed-by: Scott D Phillips <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/compiler/brw_reg.h13
-rw-r--r--src/intel/compiler/brw_reg_type.h15
2 files changed, 15 insertions, 13 deletions
diff --git a/src/intel/compiler/brw_reg.h b/src/intel/compiler/brw_reg.h
index 441dfb24471..d68d64f0037 100644
--- a/src/intel/compiler/brw_reg.h
+++ b/src/intel/compiler/brw_reg.h
@@ -289,19 +289,6 @@ type_sz(unsigned type)
}
}
-static inline bool
-brw_reg_type_is_floating_point(enum brw_reg_type type)
-{
- switch (type) {
- case BRW_REGISTER_TYPE_F:
- case BRW_REGISTER_TYPE_HF:
- case BRW_REGISTER_TYPE_DF:
- return true;
- default:
- return false;
- }
-}
-
static inline enum brw_reg_type
get_exec_type(const enum brw_reg_type type)
{
diff --git a/src/intel/compiler/brw_reg_type.h b/src/intel/compiler/brw_reg_type.h
index 87d9fe31e86..0b40906d924 100644
--- a/src/intel/compiler/brw_reg_type.h
+++ b/src/intel/compiler/brw_reg_type.h
@@ -24,6 +24,8 @@
#ifndef BRW_REG_TYPE_H
#define BRW_REG_TYPE_H
+#include <stdbool.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -65,6 +67,19 @@ enum PACKED brw_reg_type {
BRW_REGISTER_TYPE_LAST = BRW_REGISTER_TYPE_UV
};
+static inline bool
+brw_reg_type_is_floating_point(enum brw_reg_type type)
+{
+ switch (type) {
+ case BRW_REGISTER_TYPE_DF:
+ case BRW_REGISTER_TYPE_F:
+ case BRW_REGISTER_TYPE_HF:
+ return true;
+ default:
+ return false;
+ }
+}
+
unsigned
brw_reg_type_to_hw_type(const struct gen_device_info *devinfo,
enum brw_reg_file file, enum brw_reg_type type);