mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 21:40:29 +01:00
radv: add the SQTT relocated shaders BO to the cmdbuf list
Found this while debugging another thing with amdgpu.debug_mask=0x1 (VM).
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
(cherry picked from commit 045b778ed6)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39117>
This commit is contained in:
parent
283cb22720
commit
1842e17e8b
2 changed files with 4 additions and 1 deletions
|
|
@ -834,7 +834,7 @@
|
|||
"description": "radv: add the SQTT relocated shaders BO to the cmdbuf list",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -3967,6 +3967,7 @@ radv_emit_graphics_pipeline(struct radv_cmd_buffer *cmd_buffer)
|
|||
{
|
||||
struct radv_graphics_pipeline *pipeline = cmd_buffer->state.graphics_pipeline;
|
||||
struct radv_device *device = radv_cmd_buffer_device(cmd_buffer);
|
||||
struct radv_cmd_stream *cs = cmd_buffer->cs;
|
||||
|
||||
if (cmd_buffer->state.emitted_graphics_pipeline == pipeline)
|
||||
return;
|
||||
|
|
@ -3976,6 +3977,8 @@ radv_emit_graphics_pipeline(struct radv_cmd_buffer *cmd_buffer)
|
|||
if (pipeline->sqtt_shaders_reloc) {
|
||||
/* Emit shaders relocation because RGP requires them to be contiguous in memory. */
|
||||
radv_sqtt_emit_relocated_shaders(cmd_buffer, pipeline);
|
||||
|
||||
radv_cs_add_buffer(device->ws, cs->b, pipeline->sqtt_shaders_reloc->bo);
|
||||
}
|
||||
|
||||
if (radv_device_fault_detection_enabled(device))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue