Fix comparing lodOrBias as integer values
Fix comparing lodOrBias as integer values

lodOrBias can be either a floating-point LOD, a floating-point bias,
or an integer LOD. The latter is used by OpImageFetch SPIR-V
instructions (texelFetch in GLSL). To check if they diverge, we have
to use integer comparison, since floating-point comparison may treat
them as subnormal values which compare equal to zero when DAZ is
enabled.

Bug: b/169904252
Test: dEQP-VK.texture.subgroup_lod.texelfetch
Change-Id: Ifaceed84b09f8e3f1d31983cf14883343aeac72f
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/63295
Kokoro-Result: kokoro <2ac7b1f3fa578934c95181d4272be0d3bca00121@google.com>
Tested-by: Nicolas Capens <51edc787c30f24c4904e8ffbb5523c3a9f7a451d@google.com>
Reviewed-by: Alexis Hétu <1c7141772178a7e80858c3db5052b328076f08f4@google.com>

google/swiftshader,google/swiftshader,google/swiftshader