summaryrefslogtreecommitdiff
path: root/src/intel_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel_driver.c')
-rw-r--r--src/intel_driver.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c
index 67d7de1..bcc635b 100644
--- a/src/intel_driver.c
+++ b/src/intel_driver.c
@@ -153,6 +153,13 @@ intel_driver_init(VADriverContextP ctx)
intel->eu_total = ret_value;
}
+ intel->mocs_state = 0;
+
+#define GEN9_PTE_CACHE 2
+
+ if (IS_GEN9(intel->device_info))
+ intel->mocs_state = GEN9_PTE_CACHE;
+
intel_driver_get_revid(intel, &intel->revision);
return true;
}