aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/textures/decoders.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-03 18:26:31 -0400
committerGitHub <noreply@github.com>2018-07-03 18:26:31 -0400
commite122e482f034ea1da534479efcbdf637005a7f7d (patch)
treee10671ea7c221f33c2879ca9a5abc8d70a80083b /src/video_core/textures/decoders.cpp
parent1d3d4d6d06d67d067cf44831d6f6b9d5bf033cd7 (diff)
parent8a717606e4d0ce973c904ef6cb0af6566f3ef839 (diff)
Merge pull request #616 from bunnei/s8z24
gl_rasterizer_cache: Implement PixelFormat S8Z24.
Diffstat (limited to 'src/video_core/textures/decoders.cpp')
-rw-r--r--src/video_core/textures/decoders.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.cpp b/src/video_core/textures/decoders.cpp
index 680f22ddb8..7b06fea3e2 100644
--- a/src/video_core/textures/decoders.cpp
+++ b/src/video_core/textures/decoders.cpp
@@ -76,6 +76,7 @@ u32 BytesPerPixel(TextureFormat format) {
static u32 DepthBytesPerPixel(DepthFormat format) {
switch (format) {
+ case DepthFormat::S8_Z24_UNORM:
case DepthFormat::Z24_S8_UNORM:
return 4;
default:
@@ -129,6 +130,7 @@ std::vector<u8> UnswizzleDepthTexture(VAddr address, DepthFormat format, u32 wid
std::vector<u8> unswizzled_data(width * height * bytes_per_pixel);
switch (format) {
+ case DepthFormat::S8_Z24_UNORM:
case DepthFormat::Z24_S8_UNORM:
CopySwizzledData(width, height, bytes_per_pixel, bytes_per_pixel, data,
unswizzled_data.data(), true, block_height);