From 0f4f019f285da7cbc02ccbcac37fae19cab8c2bd Mon Sep 17 00:00:00 2001 From: illusion <37698908+illusion0001@users.noreply.github.com> Date: Tue, 18 Feb 2020 03:56:46 -0500 Subject: [PATCH] Revert "[D3D12] Fix some textures in Nascar games" This reverts commit 6923e5e898a57e1020403e304ab18130f31275de. --- src/xenia/gpu/d3d12/texture_cache.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/xenia/gpu/d3d12/texture_cache.cc b/src/xenia/gpu/d3d12/texture_cache.cc index 801aee75e..6fa836d9e 100644 --- a/src/xenia/gpu/d3d12/texture_cache.cc +++ b/src/xenia/gpu/d3d12/texture_cache.cc @@ -2094,7 +2094,7 @@ void TextureCache::BindingInfoFromFetchConstant( *has_signed_out = false; } - if (!(fetch.type - 1)) { // != 2 + if (fetch.type != 2) { XELOGW( "Texture fetch type is not 2 - ignoring (fetch constant is %.8X %.8X " "%.8X %.8X %.8X %.8X)!", @@ -2103,9 +2103,6 @@ void TextureCache::BindingInfoFromFetchConstant( return; } - if (fetch.type > 2) { // != - XELOGW("Texture fetch type is %d - unexpected behaviour may follow", fetch.type); - } // Validate the dimensions, get the size and clamp the maximum mip level. Dimension dimension = Dimension(fetch.dimension); uint32_t width, height, depth;