summaryrefslogtreecommitdiffstats
path: root/src/intel/common/gen_device_info.h
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2017-06-20 11:06:24 +0100
committerLionel Landwerlin <[email protected]>2017-06-20 23:26:42 +0100
commit030abc61091a38596427aa04022066719be9add5 (patch)
tree31bcc61d00bf788ffa04a03aacd8a2451427c50e /src/intel/common/gen_device_info.h
parentb3b61211157ab934f1898d3519e7288c1fd89d80 (diff)
intel: compiler/i965: fix is_broxton checks
In 5f2fe9302c is_geminilake was introduced for the differenciate broxton from geminilake. Unfortunately I failed as verifying that is_broxton is throughout the code base to mean Gen9lp. Fixes: 5f2fe9302c ("intel: common: add flag to identify platforms by name") Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/common/gen_device_info.h')
-rw-r--r--src/intel/common/gen_device_info.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/common/gen_device_info.h b/src/intel/common/gen_device_info.h
index 920a3365025..cc83857b759 100644
--- a/src/intel/common/gen_device_info.h
+++ b/src/intel/common/gen_device_info.h
@@ -186,6 +186,9 @@ struct gen_device_info
/** @} */
};
+#define gen_device_info_is_9lp(devinfo) \
+ (devinfo->is_broxton || devinfo->is_geminilake)
+
bool gen_get_device_info(int devid, struct gen_device_info *devinfo);
const char *gen_get_device_name(int devid);