summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2020-04-15 22:26:47 -0400
committerGravatar Lioncash2020-04-15 22:29:51 -0400
commit24620bc4ea9ca59a757b7f07ca912f6645c5b8ef (patch)
treee01193f451023c6fb9b75be760eea4d6d5fa8e5d /src
parentdecoder/image: Fix incorrect G24R8 component sizes in GetComponentSize() (diff)
downloadyuzu-24620bc4ea9ca59a757b7f07ca912f6645c5b8ef.tar.gz
yuzu-24620bc4ea9ca59a757b7f07ca912f6645c5b8ef.tar.xz
yuzu-24620bc4ea9ca59a757b7f07ca912f6645c5b8ef.zip
decode/image: Fix typo in assert in GetComponentSize()
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/decode/image.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/shader/decode/image.cpp b/src/video_core/shader/decode/image.cpp
index 7f94dacc8..08ebca38b 100644
--- a/src/video_core/shader/decode/image.cpp
+++ b/src/video_core/shader/decode/image.cpp
@@ -119,7 +119,7 @@ ComponentType GetComponentType(Tegra::Engines::SamplerDescriptor descriptor,
119 } 119 }
120 break; 120 break;
121 } 121 }
122 UNIMPLEMENTED_MSG("texture format not implement={}", format); 122 UNIMPLEMENTED_MSG("Texture format not implemented={}", format);
123 return ComponentType::FLOAT; 123 return ComponentType::FLOAT;
124} 124}
125 125
@@ -212,7 +212,7 @@ u32 GetComponentSize(TextureFormat format, std::size_t component) {
212 case TextureFormat::G4R4: 212 case TextureFormat::G4R4:
213 return (component == 0 || component == 1) ? 4 : 0; 213 return (component == 0 || component == 1) ? 4 : 0;
214 default: 214 default:
215 UNIMPLEMENTED_MSG("texture format not implement={}", format); 215 UNIMPLEMENTED_MSG("Texture format not implemented={}", format);
216 return 0; 216 return 0;
217 } 217 }
218} 218}
@@ -249,7 +249,7 @@ std::size_t GetImageComponentMask(TextureFormat format) {
249 case TextureFormat::R1: 249 case TextureFormat::R1:
250 return std::size_t{R}; 250 return std::size_t{R};
251 default: 251 default:
252 UNIMPLEMENTED_MSG("texture format not implement={}", format); 252 UNIMPLEMENTED_MSG("Texture format not implemented={}", format);
253 return std::size_t{R | G | B | A}; 253 return std::size_t{R | G | B | A};
254 } 254 }
255} 255}