diff options
author | Christian Koenig <[email protected]> | 2012-09-20 12:15:11 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2012-09-26 11:05:31 +0200 |
commit | 7773c7109c9a3b31767fab012183f64b932264a7 (patch) | |
tree | d84a2a020c3a9e12cafd4a5ad78ecd3c372d0880 /src/gallium/drivers/radeonsi/si_commands.c | |
parent | 3c51c60ed00b5777cb5c55664c2da8e010a4f385 (diff) |
radeonsi: start seperating commands into si_commands.c
Signed-off-by: Christian Koenig <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_commands.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_commands.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_commands.c b/src/gallium/drivers/radeonsi/si_commands.c index e9492b8e81e..5215a342f41 100644 --- a/src/gallium/drivers/radeonsi/si_commands.c +++ b/src/gallium/drivers/radeonsi/si_commands.c @@ -28,6 +28,14 @@ #include "radeonsi_pm4.h" #include "sid.h" +void si_cmd_context_control(struct si_pm4_state *pm4) +{ + si_pm4_cmd_begin(pm4, PKT3_CONTEXT_CONTROL); + si_pm4_cmd_add(pm4, 0x80000000); + si_pm4_cmd_add(pm4, 0x80000000); + si_pm4_cmd_end(pm4, false); +} + void si_cmd_surface_sync(struct si_pm4_state *pm4, uint32_t cp_coher_cntl) { si_pm4_cmd_begin(pm4, PKT3_SURFACE_SYNC); |