Implement writing B10G11R11 in the Blitter
This does not yet handle rounding correctly, nor are Inf and NaN
input values dealt with.
Note that the Vulkan 1.1.117 spec refers to
https://www.khronos.org/registry/DataFormat/specs/1.2/dataformat.1.2.html#11bitfp
for the specification on the interpretation of 11- and 10-bit floating-
point formats, while that spec itself states that:
"Note that in general conversion from a real number to any
representation may require rounding, truncation and special value
management rules which are beyond the scope of a data format
specification and may be documented in APIs which generate these
formats."
The Vulkan spec however does not document any specific conversion
requirement (in contrast, it does for the shared exponent format).
Bug: b/138944025
Change-Id: If59adfb02f2793f69a028d379a03c05f9a12bd89
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/34828
Presubmit-Ready: Nicolas Capens <nicolascapens@google.com>
Tested-by:
Nicolas Capens <nicolascapens@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Reviewed-by:
Ben Clayton <bclayton@google.com>
Showing
Please
register
or
sign in
to comment