Address review comments
This commit is contained in:
@@ -21,7 +21,8 @@ namespace ServiceCommands {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Commands written to shared memory and processed by TriggerCmdReqQueue
|
// Commands written to shared memory and processed by TriggerCmdReqQueue
|
||||||
enum class GXCommands : u32 {
|
namespace GXCommands {
|
||||||
|
enum : u32 {
|
||||||
TriggerDMARequest = 0,
|
TriggerDMARequest = 0,
|
||||||
ProcessCommandList = 1,
|
ProcessCommandList = 1,
|
||||||
MemoryFill = 2,
|
MemoryFill = 2,
|
||||||
@@ -29,6 +30,7 @@ enum class GXCommands : u32 {
|
|||||||
TriggerTextureCopy = 4,
|
TriggerTextureCopy = 4,
|
||||||
FlushCacheRegions = 5
|
FlushCacheRegions = 5
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
void GPUService::reset() {
|
void GPUService::reset() {
|
||||||
privilegedProcess = 0xFFFFFFFF; // Set the privileged process to an invalid handle
|
privilegedProcess = 0xFFFFFFFF; // Set the privileged process to an invalid handle
|
||||||
@@ -293,7 +295,7 @@ void GPUService::processCommandBuffer() {
|
|||||||
log("Processing %d GPU commands\n", commandsLeft);
|
log("Processing %d GPU commands\n", commandsLeft);
|
||||||
|
|
||||||
while (commandsLeft != 0) {
|
while (commandsLeft != 0) {
|
||||||
const GXCommands cmdID = static_cast<GXCommands>(cmd[0] & 0xff);
|
const u32 cmdID = cmd[0] & 0xff;
|
||||||
switch (cmdID) {
|
switch (cmdID) {
|
||||||
case GXCommands::ProcessCommandList: processCommandList(cmd); break;
|
case GXCommands::ProcessCommandList: processCommandList(cmd); break;
|
||||||
case GXCommands::MemoryFill: memoryFill(cmd); break;
|
case GXCommands::MemoryFill: memoryFill(cmd); break;
|
||||||
|
|||||||
Reference in New Issue
Block a user