Module: Mesa
Branch: main
Commit: 18477f60e2ce0e2c717b5e25d9c482e394ad6cf6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=18477f60e2ce0e2c717b5e25d9c482e394ad6cf6

Author: Anuj Phogat <[email protected]>
Date:   Tue Jun  2 10:31:12 2020 -0700

intel/dg2: Add L3 configuration

Rework:
 * Jordan: Merge dg1/dg2 into empty_l3_list

Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Sagar Ghuge <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12711>

---

 src/intel/common/intel_l3_config.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/intel/common/intel_l3_config.c 
b/src/intel/common/intel_l3_config.c
index e0a063efc2b..fabf2bb8278 100644
--- a/src/intel/common/intel_l3_config.c
+++ b/src/intel/common/intel_l3_config.c
@@ -149,12 +149,12 @@ static const struct intel_l3_config tgl_l3_configs[] = {
 DECLARE_L3_LIST(tgl);
 
 /**
- * DG1 validated L3 configurations.  \sa dg1_l3_configs.
+ * Empty L3 configurations.  \sa empty_l3_configs.
  */
-static const struct intel_l3_config dg1_l3_configs[] = {
+static const struct intel_l3_config empty_l3_configs[] = {
    /* No configurations. L3FullWayAllocationEnable is always set. */
 };
-DECLARE_L3_LIST(dg1);
+DECLARE_L3_LIST(empty);
 
 /**
  * Return a zero-terminated array of validated L3 configurations for the
@@ -179,8 +179,8 @@ get_l3_list(const struct intel_device_info *devinfo)
       return &icl_l3_list;
 
    case 12:
-      if (devinfo->is_dg1)
-         return &dg1_l3_list;
+      if (devinfo->is_dg1 || devinfo->is_dg2)
+         return &empty_l3_list;
       else
          return &tgl_l3_list;
 

Reply via email to