Browse Source

[vk] SanitizeComponent Adjustment

eds-true-adreno-fixes
CamilleLaVey 3 weeks ago
committed by Caio Oliveira
parent
commit
a2dbff0bc3
No known key found for this signature in database GPG Key ID: AAAE6C7FD4186B0C
  1. 5
      src/video_core/texture_cache/format_lookup_table.cpp

5
src/video_core/texture_cache/format_lookup_table.cpp

@ -32,9 +32,10 @@ constexpr TextureFormat SanitizeFormat(TextureFormat format) {
}
constexpr ComponentType SanitizeComponent(ComponentType component) {
switch (component) {
case static_cast<ComponentType>(0):
if (component == static_cast<ComponentType>(0)) {
return ComponentType::UNORM;
}
switch (component) {
case ComponentType::SNORM_FORCE_FP16:
return ComponentType::SNORM;
case ComponentType::UNORM_FORCE_FP16:

Loading…
Cancel
Save