Fix border comparison with depth 16
Fix border comparison with depth 16

In SamplerCore::sampleTexel(), if we have "state.compareEnable" and
"!hasFloatTexture()", a normalization of the input value "c.x" will
occur. Is it then expected that the input value should already be
scaled.

In SamplerCore::replaceBorderTexel(), we need to take this into
account and make sure the border pixels are in the same scale as the
other pixel of the same texture and output scaled borders when we
have those same conditions ("state.compareEnable" and
"!hasFloatTexture()")

Bug: b/227518327
Change-Id: Iefd5f27fbee5b7a0ca1a9eb3852ff3085e6848fe
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/66148
Reviewed-by: Nicolas Capens <51edc787c30f24c4904e8ffbb5523c3a9f7a451d@google.com>
Tested-by: Alexis Hétu <1c7141772178a7e80858c3db5052b328076f08f4@google.com>
Presubmit-Ready: Alexis Hétu <1c7141772178a7e80858c3db5052b328076f08f4@google.com>
Commit-Queue: Alexis Hétu <1c7141772178a7e80858c3db5052b328076f08f4@google.com>

google/swiftshader,google/swiftshader,google/swiftshader