2018-02-11 21:34:20 -05:00
|
|
|
// Copyright 2018 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2018-09-25 18:41:21 -04:00
|
|
|
#include "common/logging/log.h"
|
|
|
|
#include "core/core.h"
|
2018-02-11 21:34:20 -05:00
|
|
|
#include "video_core/engines/maxwell_compute.h"
|
|
|
|
|
2018-10-20 15:58:06 -04:00
|
|
|
namespace Tegra::Engines {
|
2018-02-11 21:34:20 -05:00
|
|
|
|
2018-11-23 23:20:56 -05:00
|
|
|
void MaxwellCompute::CallMethod(const GPU::MethodCall& method_call) {
|
|
|
|
ASSERT_MSG(method_call.method < Regs::NUM_REGS,
|
2018-09-25 18:41:21 -04:00
|
|
|
"Invalid MaxwellCompute register, increase the size of the Regs structure");
|
|
|
|
|
2018-11-23 23:20:56 -05:00
|
|
|
regs.reg_array[method_call.method] = method_call.argument;
|
2018-09-25 18:41:21 -04:00
|
|
|
|
2018-11-23 23:20:56 -05:00
|
|
|
switch (method_call.method) {
|
2018-09-25 18:41:21 -04:00
|
|
|
case MAXWELL_COMPUTE_REG_INDEX(compute): {
|
|
|
|
LOG_CRITICAL(HW_GPU, "Compute shaders are not implemented");
|
|
|
|
UNREACHABLE();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2018-02-11 21:34:20 -05:00
|
|
|
|
2018-10-20 15:58:06 -04:00
|
|
|
} // namespace Tegra::Engines
|