Refine d3d12 blocklist from X86 -> I386

This was wrong.
DAWN_PLATFORM_IS_X86 is defined for both 32-bit and 64-bit
X86 builds.

Bug: dawn:1254
Change-Id: I308ac10749edcf76643539eb2801d019dd5439f9
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/119900
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Austin Eng 2023-02-15 17:59:26 +00:00 committed by Dawn LUCI CQ
parent 3f0c4e8dd8
commit 70607cb160
1 changed files with 4 additions and 3 deletions

View File

@ -100,9 +100,10 @@ MaybeError Adapter::InitializeImpl() {
} }
if (GetInstance()->IsAdapterBlocklistEnabled()) { if (GetInstance()->IsAdapterBlocklistEnabled()) {
#if DAWN_PLATFORM_IS(X86) #if DAWN_PLATFORM_IS(I386)
DAWN_INVALID_IF(mDeviceInfo.shaderModel >= 60, DAWN_INVALID_IF(
"D3D12 x86 adapter is blocklisted. See https://crbug.com/tint/1753."); mDeviceInfo.shaderModel >= 60,
"D3D12 x86 SM6.0+ adapter is blocklisted. See https://crbug.com/tint/1753.");
DAWN_INVALID_IF( DAWN_INVALID_IF(
gpu_info::IsNvidia(mVendorId), gpu_info::IsNvidia(mVendorId),