Browse Source
[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>
pull/2896/head
MaranBr
2 months ago
committed by
crueter
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
2 changed files with
2 additions and
2 deletions
src/video_core/texture_cache/image_info.cpp
src/video_core/texture_cache/image_view_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 ;
@ -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 ;