mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-22 15:59:16 +01:00
Fixup nvdrv channel types to follow naming conventions
This commit is contained in:
parent
ad900aba7a
commit
73896c2e6b
@ -13,8 +13,8 @@ namespace skyline::service::nvdrv::core {
|
||||
*/
|
||||
enum class ChannelType : u32 {
|
||||
MsEnc = 0,
|
||||
Vic = 1,
|
||||
Gpu = 2,
|
||||
VIC = 1,
|
||||
GPU = 2,
|
||||
NvDec = 3,
|
||||
Display = 4,
|
||||
NvJpg = 5,
|
||||
@ -55,8 +55,8 @@ namespace skyline::service::nvdrv::core {
|
||||
public:
|
||||
static constexpr std::array<u32, static_cast<u32>(ChannelType::Max)> ChannelSyncpoints{
|
||||
0x0, // `MsEnc` is unimplemented
|
||||
0xC, // `Vic`
|
||||
0x0, // `Gpu` syncpoints are allocated per-channel instead
|
||||
0xC, // `VIC`
|
||||
0x0, // `GPU` syncpoints are allocated per-channel instead
|
||||
0x36, // `NvDec`
|
||||
0x0, // `Display` is unimplemented
|
||||
0x37, // `NvJpg`
|
||||
|
@ -48,7 +48,7 @@ namespace skyline::service::nvdrv {
|
||||
DEVICE_SWITCH(DEVICE_CASE("/dev/nvhost-nvjpg", nvhost::Host1xChannel, core::ChannelType::NvJpg))
|
||||
|
||||
if (ctx.perms.AccessVic)
|
||||
DEVICE_SWITCH(DEVICE_CASE("/dev/nvhost-vic", nvhost::Host1xChannel, core::ChannelType::Vic))
|
||||
DEVICE_SWITCH(DEVICE_CASE("/dev/nvhost-vic", nvhost::Host1xChannel, core::ChannelType::VIC))
|
||||
|
||||
if (ctx.perms.AccessVideoDecoder)
|
||||
DEVICE_SWITCH(DEVICE_CASE("/dev/nvhost-nvdec", nvhost::Host1xChannel, core::ChannelType::NvDec))
|
||||
|
Loading…
Reference in New Issue
Block a user