From 37ad03a764f5371a0df885bcf972717e9b50d917 Mon Sep 17 00:00:00 2001 From: "Wu, Yingcong" Date: Thu, 23 Jan 2025 06:42:46 +0100 Subject: [PATCH] bugfix --- .../layers/sanitizer/sanitizer_common/sanitizer_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/loader/layers/sanitizer/sanitizer_common/sanitizer_utils.cpp b/source/loader/layers/sanitizer/sanitizer_common/sanitizer_utils.cpp index 83b58de407..c135be0bf7 100644 --- a/source/loader/layers/sanitizer/sanitizer_common/sanitizer_utils.cpp +++ b/source/loader/layers/sanitizer/sanitizer_common/sanitizer_utils.cpp @@ -159,7 +159,7 @@ DeviceType GetDeviceType(ur_context_handle_t Context, // L0 changes their VA layout. // TODO: update our shadow memory layout/algorithms to accordingly. - if (((Ptr >> 52) & 0xff0U) == 0xff0U) { + if (Ptr >> 52 == 0xff0U) { Type = DeviceType::GPU_PVC; } else { Type = DeviceType::GPU_DG2;