mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
radv: fix dumping the faulty shader detected by the trap handler on GFX9+
The most significant bits need to be cleared. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31925>
This commit is contained in:
parent
7b4da7f736
commit
31fc3199dd
1 changed files with 1 additions and 0 deletions
|
|
@ -944,6 +944,7 @@ radv_dump_faulty_shader(struct radv_device *device, uint64_t faulty_pc)
|
|||
return;
|
||||
|
||||
start_addr = radv_shader_get_va(shader);
|
||||
start_addr &= ((1ull << 48) - 1);
|
||||
end_addr = start_addr + shader->code_size;
|
||||
instr_offset = faulty_pc - start_addr;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue