maxwell_compute.cpp 760 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2018 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "common/logging/log.h"
  5. #include "core/core.h"
  6. #include "video_core/engines/maxwell_compute.h"
  7. namespace Tegra {
  8. namespace Engines {
  9. void MaxwellCompute::WriteReg(u32 method, u32 value) {
  10. ASSERT_MSG(method < Regs::NUM_REGS,
  11. "Invalid MaxwellCompute register, increase the size of the Regs structure");
  12. regs.reg_array[method] = value;
  13. switch (method) {
  14. case MAXWELL_COMPUTE_REG_INDEX(compute): {
  15. LOG_CRITICAL(HW_GPU, "Compute shaders are not implemented");
  16. UNREACHABLE();
  17. break;
  18. }
  19. default:
  20. break;
  21. }
  22. }
  23. } // namespace Engines
  24. } // namespace Tegra