Home

Awesome

FidelityFX SPD

Copyright (c) 2020 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Changelist v2.0

Single Pass Downsampler - SPD

FidelityFX Single Pass Downsampler (SPD) provides an RDNA-optimized solution for generating up to 12 MIP levels of a texture.

Sample Build Instructions

  1. Clone submodules by running 'git submodule update --init --recursive' (so you get the Cauldron framework too)
  2. Run sample/build/GenerateSolutions.bat
  3. Open solution, build + run + have fun 😊

SPD Files

You can find them in ffx-spd

Sample

Downsampler

SPD Load Versions

SPD WaveOps Versions

SPD Non-Packed / Packed Versions

Recommendations

We recommend to use the WaveOps path when supported. If higher precision is not needed, you can enable the packed mode - it has less register pressure and can run a bit faster as well. If you compute the average for each 2x2 quad, we also recommend to use a linear sampler to fetch from the source texture instead of four separate loads.

Known issues

Please use driver 20.8.3 or newer. There is a known issue on DX12 when using the SPD No-WaveOps Packed version. It may appear as "Access violation reading location ..." during CreateComputePipelineState, with top of the stack pointing to amdxc64.dll. To workaround this issue, you may advise players to update their graphics driver or don't compile and use a different SPD version, e.g. a Non-Packed version.