mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
Merge pull request #118 from oneandonlydean/feat/dispatch-tunnel-hint
feat(agc): accept the dispatch tunnel hint
This commit is contained in:
@@ -291,10 +291,10 @@ void Validate(std::span<const std::uint32_t> packet, std::uint32_t queue) {
|
||||
require((packet[8] & 3u) == 0 && packet[8] >= (opcode == 0x2c ? 16u : 20u), "invalid indirect draw stride");
|
||||
require((packet[9] & ~0x20u) == (opcode == 0x2c ? 2u : 0u), "unsupported indirect draw initiator");
|
||||
break;
|
||||
case 0x15: size(5); if ((packet[4] & ~0x8020u) != 0x41u) throw std::runtime_error("dispatch modifiers 0x" + ToHex(packet[4]) + " are not implemented"); break;
|
||||
case 0x15: size(5); if ((packet[4] & ~0xa020u) != 0x41u) throw std::runtime_error("dispatch modifiers 0x" + ToHex(packet[4]) + " are not implemented"); break;
|
||||
case 0x16:
|
||||
require(packet.size() == 3 || packet.size() == 4, "invalid indirect dispatch size");
|
||||
require((packet.back() & ~0x8020u) == 0x41u, "indirect dispatch modifiers are not implemented");
|
||||
require((packet.back() & ~0xa020u) == 0x41u, "indirect dispatch modifiers are not implemented");
|
||||
break;
|
||||
case 0x42: size(2); require(packet[1] == 0, "unsupported PFP_SYNC_ME payload"); break;
|
||||
case 0x46: {
|
||||
|
||||
@@ -119,6 +119,9 @@ void testContextAndBases() {
|
||||
packet = makePacket(0x16, {low(arguments.data()), high(arguments.data()), 0x41});
|
||||
AgcDriver::Pm4::Validate(packet, 0x20);
|
||||
check(AgcDriver::Pm4::ResolveDispatch(packet, state)[3] == 9, "absolute indirect dispatch arguments changed");
|
||||
AgcDriver::Pm4::Validate(makePacket(0x15, {1, 1, 1, 0x2041}), 0);
|
||||
AgcDriver::Pm4::Validate(makePacket(0x16, {0, 0xa041}), 0);
|
||||
expectFailure([&] { AgcDriver::Pm4::Validate(makePacket(0x15, {1, 1, 1, 0x4041}), 0); }, "dispatch modifiers");
|
||||
execute(state, makePacket(0x13, {32}));
|
||||
execute(state, makePacket(0x26, {0x1000, 1}));
|
||||
execute(state, makePacket(0x2a, {1}));
|
||||
|
||||
Reference in New Issue
Block a user