[Mesa-dev] [PATCH] i965/gen9: Use custom MOCS entries set up by the kernel on BXT.

Francisco Jerez currojerez at riseup.net
Wed Jul 1 06:57:42 PDT 2015


Follow-up to "i965/gen9: Use custom MOCS entries set up by the
kernel.", sent as a separate patch to make the SKL change easier to
back-port to stable branches.
---
This change depends on Ville's "[PATCH 1/2] i965: House MOCS settings
in brw_context/brw_device_info":

http://lists.freedesktop.org/archives/mesa-dev/2015-June/086665.html

 src/mesa/drivers/dri/i965/brw_defines.h     | 5 +++++
 src/mesa/drivers/dri/i965/brw_device_info.c | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_defines.h b/src/mesa/drivers/dri/i965/brw_defines.h
index ac9af6d..2889118 100644
--- a/src/mesa/drivers/dri/i965/brw_defines.h
+++ b/src/mesa/drivers/dri/i965/brw_defines.h
@@ -2507,6 +2507,11 @@ enum brw_wm_barycentric_interp_mode {
 /* TC=LLC/eLLC, LeCC=PTE, LRUM=3, L3CC=WB */
 #define SKL_MOCS_PTE (9 << 1)
 
+/* Broxton: As for Skylake this should match the tables set up by the kernel.
+ */
+/* L3CC=WB */
+#define BXT_MOCS_L3  (9 << 1)
+
 #define MEDIA_VFE_STATE                         0x7000
 /* GEN7 DW2, GEN8+ DW3 */
 # define MEDIA_VFE_STATE_MAX_THREADS_SHIFT      16
diff --git a/src/mesa/drivers/dri/i965/brw_device_info.c b/src/mesa/drivers/dri/i965/brw_device_info.c
index cb80256..d5133e0 100644
--- a/src/mesa/drivers/dri/i965/brw_device_info.c
+++ b/src/mesa/drivers/dri/i965/brw_device_info.c
@@ -351,6 +351,8 @@ static const struct brw_device_info brw_device_info_bxt = {
    .max_vs_threads = 112,
    .max_gs_threads = 112,
    .max_wm_threads = 32,
+   .mocs_pte = BXT_MOCS_L3,
+   .mocs_wb = BXT_MOCS_L3,
    .urb = {
       .size = 64,
       .min_vs_entries = 34,
-- 
2.4.3



More information about the mesa-dev mailing list