summaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-11-09 03:26:30 -0300
committerGravatar ReinUsesLisp2019-11-14 20:57:10 -0300
commit80eacdf89b55528a66b2e94391e640e641e8cb57 (patch)
tree38f52e7744ba4db1aba6252837459b1ca72fa465 /src/video_core/engines
parenttexture_cache: Drop abstracted ComponentType (diff)
downloadyuzu-80eacdf89b55528a66b2e94391e640e641e8cb57.tar.gz
yuzu-80eacdf89b55528a66b2e94391e640e641e8cb57.tar.xz
yuzu-80eacdf89b55528a66b2e94391e640e641e8cb57.zip
texture_cache: Use a table instead of switch for texture formats
Use a large flat array to look up texture formats. This allows us to properly implement formats with different component types. It should also be faster.
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index 42ce49a4d..a44c09003 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -742,14 +742,6 @@ Texture::TICEntry Maxwell3D::GetTICEntry(u32 tic_index) const {
742 Texture::TICEntry tic_entry; 742 Texture::TICEntry tic_entry;
743 memory_manager.ReadBlockUnsafe(tic_address_gpu, &tic_entry, sizeof(Texture::TICEntry)); 743 memory_manager.ReadBlockUnsafe(tic_address_gpu, &tic_entry, sizeof(Texture::TICEntry));
744 744
745 [[maybe_unused]] const auto r_type{tic_entry.r_type.Value()};
746 [[maybe_unused]] const auto g_type{tic_entry.g_type.Value()};
747 [[maybe_unused]] const auto b_type{tic_entry.b_type.Value()};
748 [[maybe_unused]] const auto a_type{tic_entry.a_type.Value()};
749
750 // TODO(Subv): Different data types for separate components are not supported
751 DEBUG_ASSERT(r_type == g_type && r_type == b_type && r_type == a_type);
752
753 return tic_entry; 745 return tic_entry;
754} 746}
755 747