summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_common.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_common.h10
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.
*/