llvm / llvm/offload-test-suite

Add tests for Texture1DArray

Open
#1,384 0 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
18
Forks
39
Avg merge
2d 18h
Merged PRs (30d)
40

Description

References

Description

Add runtime GPU offload tests for Texture1DArray. Texture1DArray uses float2 locations, int offsets, and int3 Load locations (xy + mip). Gather/GatherCmp are not available on Texture1DArray.

Tasks

  • Add Texture1DArray to offload-test-suite ResourceKind

    • offload-test-suite/include/Support/Pipeline.h — add Texture1DArray to ResourceKind enum, update isRaw(), isSampler(), isTexture(), isReadWrite(), isSampledTexture(), and ScalarEnumerationTraits
    • offload-test-suite/lib/API/VK/Device.cpp — add Texture1DArray cases: VkDescriptorType, VkImageViewType (VK_IMAGE_VIEW_TYPE_1D), image creation
    • offload-test-suite/lib/API/DX/Device.cpp — add Texture1DArray cases: D3D12_SRV_DIMENSION_TEXTURE1DArray, SRV/UAV descriptor setup
    • offload-test-suite/lib/API/MTL/MTLDevice.cpp — add Texture1DArray case for Metal texture type mapping
  • Write tests (offload-test-suite/test/Feature/Textures/)

    • Load.testLoad(int3) and Load(int3, int) with offset
    • Sample.testSample(SamplerState, float2) with offset and clamp overloads
    • SampleBias.testSampleBias(SamplerState, float2, float)
    • SampleGrad.testSampleGrad(SamplerState, float2, float, float)
    • SampleCmp.testSampleCmp(SamplerComparisonState, float2, float)
    • OperatorIndex.testTex[uint] subscript
    • mips.OperatorIndex.testTex.mips[mip][uint]
    • CalculateLevelOfDetail.testCalculateLevelOfDetail(SamplerState, float)
    • Sampler.filter.test — sampler min/mag filter behaviour
    • Sampler.address.test — sampler address modes
    • Sampler.mips.test — sampler mip selection

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.