Implement OpImageQueryLod
Vulkan 1.1 spec section 15.6.7. Scale Factor Operation, Level-of-Detail
Operation and Image Level(s) Selection clarifies that the first returned
parameter is the clamped LOD, rounded to the nearest integer if
mipmapMode is VK_SAMPLER_MIPMAP_MODE_NEAREST, and the second parameter
is the unclamped LOD with base level and sampler bias applied (we don't
take maxSamplerLodBias into account, it is infinite).
Bug: b/129523279
Tests: dEQP-VK.glsl.texture_functions.query.texturequerylod.*
Tests: dEQP-VK.ycbcr.query.lod.*
Change-Id: I4aa2f16716e1e23548b6fb3e0862e7cc442e3678
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31629
Presubmit-Ready: Nicolas Capens <nicolascapens@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Tested-by:
Nicolas Capens <nicolascapens@google.com>
Reviewed-by:
Chris Forbes <chrisforbes@google.com>
Showing
Please
register
or
sign in
to comment