mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-26 21:47:06 +02:00
[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:
parent
206e7af162
commit
06275885f1
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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…
Add table
Add a link
Reference in a new issue