[video_core] Remove redundant check on image_view and image_view_info (#2891)

This removes a redundant check on image_view and image_view_info. This check is not needed here.

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2891
Co-authored-by: MaranBr <maranbr@outlook.com>
Co-committed-by: MaranBr <maranbr@outlook.com>
This commit is contained in:
MaranBr
2025-10-30 03:45:43 +01:00
committed by crueter
parent 206e7af162
commit 06275885f1
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ ImageInfo::ImageInfo(const TICEntry& config) noexcept {
ASSERT(!config.IsPitchLinear());
}
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) {
case TextureType::Texture1D:
tex_type = TextureType::Texture1DArray;

View File

@@ -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;
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) {
case TextureType::Texture1D:
tex_type = TextureType::Texture1DArray;