-
Notifications
You must be signed in to change notification settings - Fork 722
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ExecutionTest::DerivativesTest issues (#6311)
This PR fixes several issues in the `ExecutionTest::DerivativesTest`: - Use 1D quad order only when writing 1D derivative results. 2D results are expected in standard 2D form. - Use separate derivatives verification function for SM 6.6 compute, mesh and amplification shaders. In these cases the quad layout is well defined, and so are the expected results. There is only one possible result for `ddx_fine`/`ddy_fine` and two for `ddx_coarse`/`ddy_coarse`. This is different from pixel shaders where the quad layout can vary quite a bit, and so do the expected results. - Change the expected values to match results for texture pixel `(2,2)` - Adjust mesh shader dispatch dimensions to make sure `X * Y * Z <= 128` - Use same logic (shared function) to calculate center pixel for compute, mesh and amplification shaders - To enable easier debugging in the future, I have added a function that writes out the derivatives results (under `DERIVATIVES_TEST_DEBUG` define) Verified on: - Latest Microsoft Basic Render Driver that supports shader model 6.8 (CS, MS, AS). Tested on x64 and arm64. - NVIDIA GeForce RTX 2080 Ti (CS only) - AMD Radeon RX 6900 XT (CS only) Fixes #4787
- Loading branch information
Showing
2 changed files
with
125 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters