Browse Source
[vk] SanitizeComponent Adjustment
eds-true-adreno-fixes
CamilleLaVey
3 weeks ago
committed by
Caio Oliveira
No known key found for this signature in database
GPG Key ID: AAAE6C7FD4186B0C
1 changed files with
3 additions and
2 deletions
-
src/video_core/texture_cache/format_lookup_table.cpp
|
|
@ -32,9 +32,10 @@ constexpr TextureFormat SanitizeFormat(TextureFormat format) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
constexpr ComponentType SanitizeComponent(ComponentType component) { |
|
|
constexpr ComponentType SanitizeComponent(ComponentType component) { |
|
|
switch (component) { |
|
|
|
|
|
case static_cast<ComponentType>(0): |
|
|
|
|
|
|
|
|
if (component == static_cast<ComponentType>(0)) { |
|
|
return ComponentType::UNORM; |
|
|
return ComponentType::UNORM; |
|
|
|
|
|
} |
|
|
|
|
|
switch (component) { |
|
|
case ComponentType::SNORM_FORCE_FP16: |
|
|
case ComponentType::SNORM_FORCE_FP16: |
|
|
return ComponentType::SNORM; |
|
|
return ComponentType::SNORM; |
|
|
case ComponentType::UNORM_FORCE_FP16: |
|
|
case ComponentType::UNORM_FORCE_FP16: |
|
|
|