-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PrefixSum and PostfixSum not working #28
Comments
thanks for reporting. We'll investigate! |
CodeXL shows the code generated for the AmdDxExtShaderIntrinsics_WavePrefixSum:
But according to https://gpuopen.com/amd-gcn-assembly-cross-lane-operations/
|
I was able to find what is wrong in ags and create a pull request for the fix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Even in a very simple compute shader (DX11), the AmdDxExtShaderIntrinsics_WavePrefixSum and AmdDxExtShaderIntrinsics_WavePostfixSum produce wrong results. I tried on different hardware (RX 480, WX7100 and WX9100) all giving completely wrong results. I also tried different driver versions and always check that the AGS_DX11_EXTENSION_INTRINSIC_WAVE_REDUCE extension is supported.
This is a simple shader using the AmdDxExtShaderIntrinsics_WavePrefixSum (which produces bogus values) or optionally (just commenting out the USE_WAVE_PREFIX_SUM define) using AmdDxExtShaderIntrinsics_SwizzleU & AmdDxExtShaderIntrinsics_ReadlaneU to manually creating the prefix sum (which produces the correct values).
The text was updated successfully, but these errors were encountered: