Browse Source

Some minimal changes

pull/3017/head
SDK Chan 3 months ago
committed by crueter
parent
commit
41238da53a
  1. 8
      src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
  2. 6
      src/core/hle/service/nvdrv/devices/nvhost_gpu.h

8
src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp

@ -168,12 +168,12 @@ NvResult nvhost_gpu::SetErrorNotifier(IoctlSetErrorNotifier& params) {
NvResult nvhost_gpu::SetChannelPriority(IoctlChannelSetPriority& params) {
channel_priority = params.priority;
LOG_DEBUG(Service_NVDRV, "called, priority={:X}", channel_priority);
LOG_INFO(Service_NVDRV, "called, priority={:X}", channel_priority);
switch (static_cast<ChannelPriority>(channel_priority)) {
case ChannelPriority::low: channel_timeslice = 1300; break;
case ChannelPriority::medium: channel_timeslice = 2600; break;
case ChannelPriority::high: channel_timeslice = 5200; break;
case ChannelPriority::Low: channel_timeslice = 1300; break;
case ChannelPriority::Medium: channel_timeslice = 2600; break;
case ChannelPriority::High: channel_timeslice = 5200; break;
default : return NvResult::BadParameter;
}

6
src/core/hle/service/nvdrv/devices/nvhost_gpu.h

@ -67,9 +67,9 @@ private:
};
enum class ChannelPriority : u32 {
low = 0x32,
medium = 0x64,
high = 0x96,
Low = 0x32,
Medium = 0x64,
High = 0x96,
};
struct IoctlSetNvmapFD {

Loading…
Cancel
Save