The AMD drivers are open source.
The https://www.amd.com/en/resources/support-articles/release-notes/RN-AMDGPU-UNIFIED-LINUX-24-30-4.html writes:
AMD Linux GPU drivers are open source and integrated into popular Linux distributions. For many use cases, AMD recommends using AMD GPU Linux drivers available from Linux distributions.
Rocky is one of those distros and the amdgpu is that driver.
That page continues:
When using a very recent AMD discrete GPU that is not yet well supported by recent versions of Linux distributions, AMD recommends the most recent release of [amdgpu]. Many users find it convenient to migrate to AMD GPU Linux drivers available from Linux distributions once they’ve been updated to include support for the latest AMD GPU products.
Does OP have very recent AMD discrete GPU? Show what you have with:
lspci -nn -d ::0300