path: root/src/intel_driver.h
diff options
authorZhao Yakui <>2017-01-17 08:40:18 +0800
committerSean V Kelley <>2017-01-17 15:03:29 -0800
commitfce75e3a7fe6d61fad0411359406ab291dd3f2c7 (patch)
tree73a2654b43c4919ae5f22d1c319d57b1030138f9 /src/intel_driver.h
parentee9261e895a5b86a2532595629cd9c31fff51747 (diff)
Follow the HW spec to configure the buffer cache on Gen9+
The MOCS field is used to define the cache type for the given buffer. From the SKL+, the MOCS field is interpreted as the index that is used to find the corresponding cache type in kernel driver. The current MOCS setting causes that buffer uses the wrong cache type. Signed-off-by: Zhao Yakui <> Reviewed-by: Sean V Kelley <>
Diffstat (limited to 'src/intel_driver.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel_driver.h b/src/intel_driver.h
index 036e150..ad3c04b 100644
--- a/src/intel_driver.h
+++ b/src/intel_driver.h
@@ -192,6 +192,7 @@ struct intel_driver_data
int eu_total;
const struct intel_device_info *device_info;
+ unsigned int mocs_state;
bool intel_driver_init(VADriverContextP ctx);