Skip to content

Conversation

@s-perron
Copy link
Contributor

@s-perron s-perron commented Feb 3, 2026

This commit extends the offload-test-suite infrastructure to support
textures with multiple mip levels.

  • Update OutputProperties to include MipLevels.
  • Update Vulkan backend to correctly create, upload, and sample from
    multi-mip images.
  • Add error checking in the DirectX and Vulkan backends to validate
    texture dimensions and mip counts.
  • Add docs/MipMappedTextures.md to explain the required data layout.

Comprehensive tests were added for Texture2D functions, including sampling,
gradients, and LOD calculation. Existing tests were updated to reflect
correct results under the new infrastructure.

Note: Multiple mip levels are currently restricted in the DirectX backend
via runtime error checking.

Fixes #690

Assisted-by: Gemini

This commit extends the offload-test-suite infrastructure to support
textures with multiple mip levels.

- Update OutputProperties to include MipLevels.
- Update Vulkan backend to correctly create, upload, and sample from
  multi-mip images.
- Add error checking in the DirectX and Vulkan backends to validate
  texture dimensions and mip counts.
- Add docs/MipMappedTextures.md to explain the required data layout.

Comprehensive tests were added for Texture2D functions, including sampling,
gradients, and LOD calculation. Existing tests were updated to reflect
correct results under the new infrastructure.

Note: Multiple mip levels are currently restricted in the DirectX backend
via runtime error checking.

Fixes llvm#690

Assisted-by: Gemini
@s-perron s-perron requested review from Keenuts and luciechoi February 3, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Vulkan][DXC] Feature/Textures/Texture2D.Sample* tests fail on all machines

1 participant