summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_pipe.h
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2016-04-02 13:19:42 +0200
committerBas Nieuwenhuizen <[email protected]>2016-04-19 18:10:31 +0200
commit1349dd16ff4f0e40e9ecefcb818302752cd0bf38 (patch)
tree5703b753dbe0928cc46a36bd6076792b52eb2658 /src/gallium/drivers/radeonsi/si_pipe.h
parentba1f66a73d493c49a3a329d9f3882ddbae4147b0 (diff)
radeonsi: only emit compute shader state when switching shaders
v2: - Do check if anything changed earlier - Use emitted_program instead of emitted_bo to prevent shaders with shader->bo = NULL confusing the check - Use radeon_set_sh_reg* Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h
index d752c0c7fbd..ff60dcf67dc 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.h
+++ b/src/gallium/drivers/radeonsi/si_pipe.h
@@ -133,6 +133,8 @@ struct si_sampler_state {
struct si_cs_shader_state {
struct si_compute *program;
+ struct si_compute *emitted_program;
+ unsigned offset;
bool initialized;
};