Skip to content

Conversation

@hekota
Copy link
Member

@hekota hekota commented Apr 4, 2025

Depends on #65

Closes llvm/wg-hlsl#201

@hekota hekota changed the title Test for [RW]ByteAddressBuffer Load* and Store* operations Add test for ByteAddressBuffer Apr 5, 2025
Copy link
Contributor

@inbelic inbelic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although I agree that we could move this to the pr with the implementation changes as well.

Also, can we add duplicate tests with different bit-width types (uint16, and hex8)? That way we test all the different code paths in getRawDXFormat


// This test checks that we will get the expected values from invoking
// various `Load*` and `Store` methods on `[RW]ByteAddressBuffer`.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// The expected behaviour is to copy over the values in `In` at the given byte-offset
// to their respective offset in `Out`. We expect each load and store to only access
// mapped tiles in a tile resource, so `CheckAccessFullyMapped` should always return
// `true = 1`.

@hekota
Copy link
Member Author

hekota commented Apr 7, 2025

Also, can we add duplicate tests with different bit-width types (uint16, and hex8)? That way we test all the different code paths in getRawDXFormat

Turns out 16-bit and 8-bit values are not supported for raw buffers!

hekota added a commit to hekota/offload-test-suite that referenced this pull request Apr 7, 2025
… input.

Remove 8-bit & 16-bit input option because raw buffers can only have R32_TYPELESS DXC type.
@hekota
Copy link
Member Author

hekota commented Apr 7, 2025

Merged into #65

@hekota hekota closed this Apr 7, 2025
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.

Add test for ByteAddressBuffer to offload-test-suite

2 participants