Mesa (master): i965: Add parentheses around usage of macro arguments
Matt Turner
mattst88 at kemper.freedesktop.org
Wed Oct 4 21:09:49 UTC 2017
Module: Mesa
Branch: master
Commit: 4c961a5e79f40596e19e88ad780377a3fccc7a92
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c961a5e79f40596e19e88ad780377a3fccc7a92
Author: Matt Turner <mattst88 at gmail.com>
Date: Fri Sep 1 15:34:54 2017 -0700
i965: Add parentheses around usage of macro arguments
Otherwise I cannot use this macro in test_eu_validate.cpp
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
---
src/intel/common/gen_device_info.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/common/gen_device_info.h b/src/intel/common/gen_device_info.h
index ede4915e28..59b345e949 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);
More information about the mesa-commit
mailing list