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:
committed by
Marge Bot
parent
7b4da7f736
commit
31fc3199dd
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user