diff options
author | Matt Turner <[email protected]> | 2017-09-01 15:34:54 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2017-10-04 14:08:54 -0700 |
commit | 4c961a5e79f40596e19e88ad780377a3fccc7a92 (patch) | |
tree | b26e98aa3cfd0e70711f463af9eee356393b90ef | |
parent | 1fcdb1cbeae058cc23349485dca7cc6c7de398f1 (diff) |
i965: Add parentheses around usage of macro arguments
Otherwise I cannot use this macro in test_eu_validate.cpp
Reviewed-by: Iago Toral Quiroga <[email protected]>
-rw-r--r-- | src/intel/common/gen_device_info.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/common/gen_device_info.h b/src/intel/common/gen_device_info.h index ede4915e287..59b345e949c 100644 --- a/src/intel/common/gen_device_info.h +++ b/src/intel/common/gen_device_info.h @@ -193,7 +193,7 @@ struct gen_device_info }; #define gen_device_info_is_9lp(devinfo) \ - (devinfo->is_broxton || devinfo->is_geminilake) + ((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); |