RadeonGpuAnalyzer.h 749 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <AnKi/ShaderCompiler/Common.h>
  7. #include <AnKi/Util/WeakArray.h>
  8. namespace anki {
  9. /// @addtogroup shader_compiler
  10. /// @{
  11. /// RGA output.
  12. class RgaOutput
  13. {
  14. public:
  15. U32 m_vgprCount = 0;
  16. U32 m_sgprCount = 0;
  17. U32 m_isaSize = 0;
  18. String toString() const
  19. {
  20. return String().sprintf("VGPRs %u SGPRs %u ISA size %u", m_vgprCount, m_sgprCount, m_isaSize);
  21. }
  22. };
  23. /// Run the mali offline compiler and get some info back.
  24. Error runRadeonGpuAnalyzer(ConstWeakArray<U8> spirv, ShaderType shaderType, RgaOutput& out);
  25. /// @}
  26. } // end namespace anki