mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 23:45:12 +00:00
[rpcsx-gpu] hacks for gnm compositor
This commit is contained in:
parent
b0166046be
commit
9bf5336478
8 changed files with 150 additions and 50 deletions
|
|
@ -92,7 +92,7 @@ int main(int argc, const char *argv[]) {
|
|||
}
|
||||
|
||||
const char *cmdBridgeName = "/rpcsx-gpu-cmds";
|
||||
const char *shmName = "/rpcsx-os-memory";
|
||||
const char *shmName = "/rpcsx-os-memory-50001";
|
||||
unsigned long gpuIndex = 0;
|
||||
auto presenter = PresenterMode::Window;
|
||||
bool enableValidation = false;
|
||||
|
|
@ -945,15 +945,25 @@ int main(int argc, const char *argv[]) {
|
|||
for (auto cmd : std::span(commandsBuffer, pulledCount)) {
|
||||
switch (cmd.id) {
|
||||
case amdgpu::bridge::CommandId::ProtectMemory:
|
||||
if (cmd.memoryProt.pid != 50001) {
|
||||
continue;
|
||||
}
|
||||
device.handleProtectMemory(cmd.memoryProt.address,
|
||||
cmd.memoryProt.size, cmd.memoryProt.prot);
|
||||
break;
|
||||
case amdgpu::bridge::CommandId::CommandBuffer:
|
||||
if (cmd.memoryProt.pid != 50001) {
|
||||
continue;
|
||||
}
|
||||
device.handleCommandBuffer(cmd.commandBuffer.queue,
|
||||
cmd.commandBuffer.address,
|
||||
cmd.commandBuffer.size);
|
||||
break;
|
||||
case amdgpu::bridge::CommandId::Flip: {
|
||||
if (cmd.memoryProt.pid != 50001) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isImageAcquired) {
|
||||
Verify() << vkAcquireNextImageKHR(vkDevice, swapchain, UINT64_MAX,
|
||||
presentCompleteSemaphore, nullptr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue