Open msiglreith opened 6 years ago
Vulkan spec: image level parameter = ceil(d + 0.5) - 1 or floor(d + 0.5)
for mipmap nearest, where d = base_level + lod parameter
dx12 might just floor(?) even though it would be surprising..
probably worth testing it on multiple GPUs and drivers
@msiglreith i get the following results on dEQP-VK.texture.mipmap.cubemap.max_lod.nearest_nearest
:
Normal | Min/MaxLOD += 0.5 |
---|---|
![]() |
![]() |
Driver version: 18.3.4 GPU: Radeon (TM) RX 470 Graphics
min and max lods need to be adjusted by 0.5 (added) to pass the nearest mipmap lod CTS tests (dEQP-VK.texture.mipmap.cubemap.max_lod.nearest_nearest, etc).
Would be nice to get some more details about this than just adding some 'random' magic values.