summaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-04-28 01:01:22 -0300
committerGravatar ReinUsesLisp2019-06-20 21:36:12 -0300
commitb8c75a845b1784045a10fa8b5f1f57f2ec53eeca (patch)
treeb71f71b5d3d8c3d12556e3fbf9344dbb9e8f220c /src/video_core/engines
parentgl_shader_decompiler: Allow 1D textures to be texture buffers (diff)
downloadyuzu-b8c75a845b1784045a10fa8b5f1f57f2ec53eeca.tar.gz
yuzu-b8c75a845b1784045a10fa8b5f1f57f2ec53eeca.tar.xz
yuzu-b8c75a845b1784045a10fa8b5f1f57f2ec53eeca.zip
maxwell_3d: Partially implement texture buffers as 1D textures
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index 08d553696..8755b8af4 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -430,14 +430,10 @@ Texture::TICEntry Maxwell3D::GetTICEntry(u32 tic_index) const {
430 Texture::TICEntry tic_entry; 430 Texture::TICEntry tic_entry;
431 memory_manager.ReadBlockUnsafe(tic_address_gpu, &tic_entry, sizeof(Texture::TICEntry)); 431 memory_manager.ReadBlockUnsafe(tic_address_gpu, &tic_entry, sizeof(Texture::TICEntry));
432 432
433 ASSERT_MSG(tic_entry.header_version == Texture::TICHeaderVersion::BlockLinear || 433 const auto r_type{tic_entry.r_type.Value()};
434 tic_entry.header_version == Texture::TICHeaderVersion::Pitch, 434 const auto g_type{tic_entry.g_type.Value()};
435 "TIC versions other than BlockLinear or Pitch are unimplemented"); 435 const auto b_type{tic_entry.b_type.Value()};
436 436 const auto a_type{tic_entry.a_type.Value()};
437 const auto r_type = tic_entry.r_type.Value();
438 const auto g_type = tic_entry.g_type.Value();
439 const auto b_type = tic_entry.b_type.Value();
440 const auto a_type = tic_entry.a_type.Value();
441 437
442 // TODO(Subv): Different data types for separate components are not supported 438 // TODO(Subv): Different data types for separate components are not supported
443 DEBUG_ASSERT(r_type == g_type && r_type == b_type && r_type == a_type); 439 DEBUG_ASSERT(r_type == g_type && r_type == b_type && r_type == a_type);