Browse Source

Remove unneeded check

pull/2891/head
MaranBr 3 months ago
committed by crueter
parent
commit
02a752dfd3
  1. 2
      src/video_core/texture_cache/image_info.cpp
  2. 2
      src/video_core/texture_cache/image_view_info.cpp

2
src/video_core/texture_cache/image_info.cpp

@ -52,7 +52,7 @@ ImageInfo::ImageInfo(const TICEntry& config) noexcept {
ASSERT(!config.IsPitchLinear()); ASSERT(!config.IsPitchLinear());
} }
TextureType tex_type = config.texture_type; TextureType tex_type = config.texture_type;
if ((config.Depth() > 1 || config.BaseLayer() != 0) && config.BaseLayer() < config.Depth()) {
if (config.Depth() > 1 || config.BaseLayer() != 0) {
switch (tex_type) { switch (tex_type) {
case TextureType::Texture1D: case TextureType::Texture1D:
tex_type = TextureType::Texture1DArray; tex_type = TextureType::Texture1DArray;

2
src/video_core/texture_cache/image_view_info.cpp

@ -41,7 +41,7 @@ ImageViewInfo::ImageViewInfo(const TICEntry& config, s32 base_layer) noexcept
}; };
range.extent.levels = config.res_max_mip_level - config.res_min_mip_level + 1; range.extent.levels = config.res_max_mip_level - config.res_min_mip_level + 1;
TextureType tex_type = config.texture_type; TextureType tex_type = config.texture_type;
if ((config.Depth() > 1 || base_layer != 0) && static_cast<u32>(base_layer) < config.Depth()) {
if (config.Depth() > 1 || base_layer != 0) {
switch (tex_type) { switch (tex_type) {
case TextureType::Texture1D: case TextureType::Texture1D:
tex_type = TextureType::Texture1DArray; tex_type = TextureType::Texture1DArray;

Loading…
Cancel
Save