A segfault that can occur in testrender when the renderer is destroyed before the ShadingSystem.
A compilation failure when using CUDA Toolkit 12.0 or newer due to references to the long-deprecated (and now removed) textureReference API still being present in the LLVM headers.
These changes aren't related, but I've bundled them up for convenience. I can break these into individual PRs if that would be preferable.
Tests
No new tests, but all previously passing tests still pass.
[x] I have updated the documentation, if applicable.
[x] I have ensured that the change is tested somewhere in the testsuite (adding new test cases if necessary).
[x] My code follows the prevailing code style of this project. If I haven't
already run clang-format v17 before submitting, I definitely will look at
the CI test that runs clang-format and fix anything that it highlights as
being nonconforming.
Description
This PR includes fixes for three issues:
llvm::TargetMachine
used for NVPTX.A segfault that can occur intestrender
when the renderer is destroyed before theShadingSystem
.textureReference
API still being present in the LLVM headers.These changes aren't related, but I've bundled them up for convenience. I can break these into individual PRs if that would be preferable.
Tests
No new tests, but all previously passing tests still pass.
Checklist: