[D3D12] Fix some textures in Nascar games
This commit is contained in:
parent
edad2135db
commit
6923e5e898
|
@ -2094,7 +2094,7 @@ void TextureCache::BindingInfoFromFetchConstant(
|
|||
*has_signed_out = false;
|
||||
}
|
||||
|
||||
if (fetch.type != 2) {
|
||||
if (!(fetch.type - 1)) { // != 2
|
||||
XELOGW(
|
||||
"Texture fetch type is not 2 - ignoring (fetch constant is %.8X %.8X "
|
||||
"%.8X %.8X %.8X %.8X)!",
|
||||
|
@ -2103,6 +2103,9 @@ 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;
|
||||
|
|
Loading…
Reference in New Issue