Module: Mesa
Branch: staging/22.1
Commit: bd1c04e187b00b2886bf59b3d7c50bea1d5377da
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bd1c04e187b00b2886bf59b3d7c50bea1d5377da

Author: Mark Janes <[email protected]>
Date:   Mon Aug  1 15:46:24 2022 -0700

intel/dev: drop warning for unhandled hwconfig keys

The hwconfig api may change unexpectedly prior to public release of
new platforms.  Also, public documentation of the hwconfig api
sometimes lags the release.

For these reasons, warnings about unhandled hwconfig keys are noisy,
likely to occur, and unhelpful to most users.  This commit drops those
warnings, in favor of a separate internal process for tracking
hwconfig api changes.

Suggested-by: Jordan Justen <[email protected]>
Reviewed-by:  Jordan Justen <[email protected]>
(cherry picked from commit 6401d768b9937083bbd28998769309330a495c44)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17862>

---

 src/intel/dev/intel_hwconfig.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/intel/dev/intel_hwconfig.c b/src/intel/dev/intel_hwconfig.c
index e2a49fb442d..4622a030046 100644
--- a/src/intel/dev/intel_hwconfig.c
+++ b/src/intel/dev/intel_hwconfig.c
@@ -265,10 +265,8 @@ apply_hwconfig_item(struct intel_device_info *devinfo,
    case INTEL_HWCONFIG_MAX_EU_PER_SUBSLICE:
    case INTEL_HWCONFIG_RAMBO_L3_BANK_SIZE_IN_KB:
    case INTEL_HWCONFIG_SLM_SIZE_PER_SS_IN_KB:
-      break; /* ignore */
    default:
-      fprintf(stderr, "hwconfig key %d (%s) unhandled!\n", item->key,
-              key_to_name(item->key));
+      break; /* ignore */
    }
 }
 

Reply via email to