Rename NonNormalized to Unnormalized
That's what it's called by the Vulkan spec.
Fixes: b/29203875
Change-Id: Id5049147692b0c845b1bb7afeb8ff5fa94c25773
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/40114
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
diff --git a/src/Device/Blitter.cpp b/src/Device/Blitter.cpp
index d67968f..99e9d3a 100644
--- a/src/Device/Blitter.cpp
+++ b/src/Device/Blitter.cpp
@@ -1262,8 +1262,8 @@
float4 scale{}, unscale{};
if(state.clearOperation &&
- state.sourceFormat.isNonNormalizedInteger() &&
- !state.destFormat.isNonNormalizedInteger())
+ state.sourceFormat.isUnnormalizedInteger() &&
+ !state.destFormat.isUnnormalizedInteger())
{
// If we're clearing a buffer from an int or uint color into a normalized color,
// then the whole range of the int or uint color must be scaled between 0 and 1.
@@ -1365,8 +1365,8 @@
Int sWidth = *Pointer<Int>(blit + OFFSET(BlitData, sWidth));
Int sHeight = *Pointer<Int>(blit + OFFSET(BlitData, sHeight));
- bool intSrc = state.sourceFormat.isNonNormalizedInteger();
- bool intDst = state.destFormat.isNonNormalizedInteger();
+ bool intSrc = state.sourceFormat.isUnnormalizedInteger();
+ bool intDst = state.destFormat.isUnnormalizedInteger();
bool intBoth = intSrc && intDst;
int srcBytes = state.sourceFormat.bytes();
int dstBytes = state.destFormat.bytes();