summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_compute.cpp
blob: 59e28b22d16f6f395f9e265c5153233fedd67f56 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2018 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#include "common/logging/log.h"
#include "core/core.h"
#include "video_core/engines/maxwell_compute.h"

namespace Tegra {
namespace Engines {

void MaxwellCompute::WriteReg(u32 method, u32 value) {
    ASSERT_MSG(method < Regs::NUM_REGS,
               "Invalid MaxwellCompute register, increase the size of the Regs structure");

    regs.reg_array[method] = value;

    switch (method) {
    case MAXWELL_COMPUTE_REG_INDEX(compute): {
        LOG_CRITICAL(HW_GPU, "Compute shaders are not implemented");
        UNREACHABLE();
        break;
    }
    default:
        break;
    }
}

} // namespace Engines
} // namespace Tegra