mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
radv: only include executable size when capturing shaders with RGP
This might help RGP to not try to disassemble past s_endpgm and crashes on unknown instructions. Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14419 Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38885>
This commit is contained in:
parent
16a94b1b7f
commit
31a24caad9
1 changed files with 2 additions and 1 deletions
|
|
@ -1388,7 +1388,8 @@ radv_fill_code_object_record(struct radv_device *device, struct rgp_shader_data
|
|||
memset(shader_data->rt_shader_name, 0, sizeof(shader_data->rt_shader_name));
|
||||
shader_data->hash[0] = (uint64_t)(uintptr_t)shader;
|
||||
shader_data->hash[1] = (uint64_t)(uintptr_t)shader >> 32;
|
||||
shader_data->code_size = shader->code_size;
|
||||
shader_data->code_size =
|
||||
shader->exec_size; /* Only include executable size so RGP doesn't try to disassemble constant data. */
|
||||
shader_data->code = shader->code;
|
||||
shader_data->vgpr_count = shader->config.num_vgprs;
|
||||
shader_data->sgpr_count = shader->config.num_sgprs;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue