diff options
Diffstat (limited to 'src/video_core/command_classes')
| -rw-r--r-- | src/video_core/command_classes/vic.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/command_classes/vic.cpp b/src/video_core/command_classes/vic.cpp index 66e21ce9c..aa8c9f9de 100644 --- a/src/video_core/command_classes/vic.cpp +++ b/src/video_core/command_classes/vic.cpp | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | #include "video_core/engines/maxwell_3d.h" | 9 | #include "video_core/engines/maxwell_3d.h" |
| 10 | #include "video_core/gpu.h" | 10 | #include "video_core/gpu.h" |
| 11 | #include "video_core/memory_manager.h" | 11 | #include "video_core/memory_manager.h" |
| 12 | #include "video_core/texture_cache/surface_params.h" | 12 | #include "video_core/textures/decoders.h" |
| 13 | 13 | ||
| 14 | extern "C" { | 14 | extern "C" { |
| 15 | #include <libswscale/swscale.h> | 15 | #include <libswscale/swscale.h> |
| @@ -105,9 +105,9 @@ void Vic::Execute() { | |||
| 105 | const auto size = Tegra::Texture::CalculateSize(true, 4, frame->width, frame->height, 1, | 105 | const auto size = Tegra::Texture::CalculateSize(true, 4, frame->width, frame->height, 1, |
| 106 | block_height, 0); | 106 | block_height, 0); |
| 107 | std::vector<u8> swizzled_data(size); | 107 | std::vector<u8> swizzled_data(size); |
| 108 | Tegra::Texture::CopySwizzledData(frame->width, frame->height, 1, 4, 4, | 108 | Tegra::Texture::SwizzleSubrect(frame->width, frame->height, frame->width * 4, |
| 109 | swizzled_data.data(), converted_frame_buffer.get(), | 109 | frame->width, 4, swizzled_data.data(), |
| 110 | false, block_height, 0, 1); | 110 | converted_frame_buffer.get(), block_height, 0, 0); |
| 111 | 111 | ||
| 112 | gpu.MemoryManager().WriteBlock(output_surface_luma_address, swizzled_data.data(), size); | 112 | gpu.MemoryManager().WriteBlock(output_surface_luma_address, swizzled_data.data(), size); |
| 113 | gpu.Maxwell3D().OnMemoryWrite(); | 113 | gpu.Maxwell3D().OnMemoryWrite(); |