mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-04 13:07:32 +00:00
test(shader): hold the table caller before decoding it
RdnaProgram::code is a span, so decoding the temporary TableCaller() left it dangling when LinkCalls copied the caller. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
66b0e20eeb
commit
aa656b2ee5
1 file changed
+2
-1
@@ -399,7 +399,8 @@ static std::vector<std::uint32_t> HoistedTableCaller(HoistedShape shape) {
|
||||
|
||||
static void CheckTableCalleeProgramCounter() {
|
||||
const SwappcInfo swappc{false, 0u, 16u};
|
||||
const auto program = RdnaInstructionDecoder{}.Decode(TableCaller());
|
||||
const auto caller = TableCaller();
|
||||
const auto program = RdnaInstructionDecoder{}.Decode(caller);
|
||||
const auto calls = FindTableCalls(program, swappc);
|
||||
Require(calls.size() == 1u);
|
||||
const std::vector<std::uint32_t> callee{0xbf820001u, 0xbe901f00u, 0xbe80200eu};
|
||||
|
||||
Reference in new issue
Block a user