diff options
author | Chia-I Wu <[email protected]> | 2014-09-12 10:55:58 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-09-12 16:58:30 +0800 |
commit | 56d2ebb019f38d727a41f8f4a8ebd4f1aeee19e0 (patch) | |
tree | 44e84ab2aa0481e9f75a924ed2803bd7326f8064 /src/gallium/drivers/ilo/ilo_common.h | |
parent | ea5de3e0bd82c52130633b1f01b5e0ed226b3b76 (diff) |
ilo: use an accessor for dev->gen
It should enable us to do specialized builds by making the accessor return a
constant.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_common.h')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_common.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_common.h b/src/gallium/drivers/ilo/ilo_common.h index 41d9ea69956..591730d8754 100644 --- a/src/gallium/drivers/ilo/ilo_common.h +++ b/src/gallium/drivers/ilo/ilo_common.h @@ -76,13 +76,21 @@ struct ilo_dev_info { bool has_timestamp; bool has_gen7_sol_reset; - int gen; + /* use ilo_dev_gen() */ + int gen_opaque; + int gt; int urb_size; }; extern int ilo_debug; +static inline int +ilo_dev_gen(const struct ilo_dev_info *dev) +{ + return dev->gen_opaque; +} + /** * Print a message, for dumping or debugging. */ |