diff options
| author | 2022-03-19 21:51:16 -0700 | |
|---|---|---|
| committer | 2022-03-24 18:13:33 -0700 | |
| commit | ca12a77670d1463c2257bcdd829bb9bc56f1461b (patch) | |
| tree | 8c6f7781383232909584d65e982376cb2e7ecd46 /src/video_core/renderer_vulkan | |
| parent | hle: nvflinger: BufferQueueProducer: Handle SetPreallocatedBuffer with empty ... (diff) | |
| download | yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar.gz yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar.xz yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.zip | |
hle: nvflinger: Migrate android namespace -> Service::android.
Diffstat (limited to 'src/video_core/renderer_vulkan')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_blit_screen.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/renderer_vulkan/vk_blit_screen.cpp b/src/video_core/renderer_vulkan/vk_blit_screen.cpp index 3da16c422..d893c1952 100644 --- a/src/video_core/renderer_vulkan/vk_blit_screen.cpp +++ b/src/video_core/renderer_vulkan/vk_blit_screen.cpp | |||
| @@ -94,11 +94,11 @@ std::size_t GetSizeInBytes(const Tegra::FramebufferConfig& framebuffer) { | |||
| 94 | 94 | ||
| 95 | VkFormat GetFormat(const Tegra::FramebufferConfig& framebuffer) { | 95 | VkFormat GetFormat(const Tegra::FramebufferConfig& framebuffer) { |
| 96 | switch (framebuffer.pixel_format) { | 96 | switch (framebuffer.pixel_format) { |
| 97 | case android::PixelFormat::Rgba8888: | 97 | case Service::android::PixelFormat::Rgba8888: |
| 98 | return VK_FORMAT_A8B8G8R8_UNORM_PACK32; | 98 | return VK_FORMAT_A8B8G8R8_UNORM_PACK32; |
| 99 | case android::PixelFormat::Rgb565: | 99 | case Service::android::PixelFormat::Rgb565: |
| 100 | return VK_FORMAT_R5G6B5_UNORM_PACK16; | 100 | return VK_FORMAT_R5G6B5_UNORM_PACK16; |
| 101 | case android::PixelFormat::Bgra8888: | 101 | case Service::android::PixelFormat::Bgra8888: |
| 102 | return VK_FORMAT_B8G8R8A8_UNORM; | 102 | return VK_FORMAT_B8G8R8A8_UNORM; |
| 103 | default: | 103 | default: |
| 104 | UNIMPLEMENTED_MSG("Unknown framebuffer pixel format: {}", | 104 | UNIMPLEMENTED_MSG("Unknown framebuffer pixel format: {}", |
| @@ -1390,9 +1390,9 @@ void VKBlitScreen::SetVertexData(BufferData& data, const Tegra::FramebufferConfi | |||
| 1390 | auto right = texcoords.right; | 1390 | auto right = texcoords.right; |
| 1391 | 1391 | ||
| 1392 | switch (framebuffer_transform_flags) { | 1392 | switch (framebuffer_transform_flags) { |
| 1393 | case android::BufferTransformFlags::Unset: | 1393 | case Service::android::BufferTransformFlags::Unset: |
| 1394 | break; | 1394 | break; |
| 1395 | case android::BufferTransformFlags::FlipV: | 1395 | case Service::android::BufferTransformFlags::FlipV: |
| 1396 | // Flip the framebuffer vertically | 1396 | // Flip the framebuffer vertically |
| 1397 | left = texcoords.right; | 1397 | left = texcoords.right; |
| 1398 | right = texcoords.left; | 1398 | right = texcoords.left; |