mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 18:00:13 +01:00
radeonsi/gfx9: also apply scratch relocations to the 1st shader of merged shaders
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
e107c5a426
commit
1b01014cbf
1 changed files with 3 additions and 0 deletions
|
|
@ -2611,6 +2611,9 @@ static int si_update_scratch_buffer(struct si_context *sctx,
|
||||||
|
|
||||||
assert(sctx->scratch_buffer);
|
assert(sctx->scratch_buffer);
|
||||||
|
|
||||||
|
if (shader->previous_stage)
|
||||||
|
si_shader_apply_scratch_relocs(shader->previous_stage, scratch_va);
|
||||||
|
|
||||||
si_shader_apply_scratch_relocs(shader, scratch_va);
|
si_shader_apply_scratch_relocs(shader, scratch_va);
|
||||||
|
|
||||||
/* Replace the shader bo with a new bo that has the relocs applied. */
|
/* Replace the shader bo with a new bo that has the relocs applied. */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue