2019-06-07 15:34:55 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
#include "common/common_types.h"
|
|
|
|
|
|
|
|
namespace Service::Nvidia {
|
|
|
|
|
2019-06-07 16:56:30 +00:00
|
|
|
constexpr u32 MaxSyncPoints = 192;
|
|
|
|
|
2019-06-07 15:34:55 +00:00
|
|
|
struct Fence {
|
|
|
|
s32 id;
|
|
|
|
u32 value;
|
|
|
|
};
|
|
|
|
|
|
|
|
static_assert(sizeof(Fence) == 8, "Fence has wrong size");
|
|
|
|
|
|
|
|
struct MultiFence {
|
|
|
|
u32 num_fences;
|
|
|
|
std::array<Fence, 4> fences;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class NvResult : u32 {
|
|
|
|
Success = 0,
|
|
|
|
TryAgain = 11,
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Service::Nvidia
|