projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e107c5a
)
radeonsi/gfx9: also apply scratch relocations to the 1st shader of merged shaders
author
Marek Olšák
<marek.olsak@amd.com>
Thu, 27 Apr 2017 17:01:44 +0000
(19:01 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Thu, 4 May 2017 22:23:44 +0000
(
00:23
+0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_state_shaders.c
b/src/gallium/drivers/radeonsi/si_state_shaders.c
index 7191e4100a18b71dd77023008ede488fa7ea1b40..3a9a6f7fcf92ed50b31b96b3fbb3427e4920e3e4 100644
(file)
--- a/
src/gallium/drivers/radeonsi/si_state_shaders.c
+++ b/
src/gallium/drivers/radeonsi/si_state_shaders.c
@@
-2611,6
+2611,9
@@
static int si_update_scratch_buffer(struct si_context *sctx,
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);
/* Replace the shader bo with a new bo that has the relocs applied. */