diff options
author | Alex Deucher <[email protected]> | 2013-06-07 14:04:58 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2013-06-28 15:16:27 -0400 |
commit | f2a9bd80840d5c570689ea1f4ccb648000fc9b88 (patch) | |
tree | ca327dda582f36853a7274f83dde578d252e0bb6 /src/gallium/drivers/radeonsi/radeonsi_pm4.c | |
parent | 3a47f1945ffda1d931790845daa38d370b1833bc (diff) |
radeonsi: store chip class in the pm4 struct
Will be used for asic specific pm4 behavior.
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_pm4.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_pm4.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_pm4.c b/src/gallium/drivers/radeonsi/radeonsi_pm4.c index daac5629790..bbc62d3b1aa 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pm4.c +++ b/src/gallium/drivers/radeonsi/radeonsi_pm4.c @@ -173,6 +173,18 @@ void si_pm4_free_state(struct r600_context *rctx, FREE(state); } +struct si_pm4_state * si_pm4_alloc_state(struct r600_context *rctx) +{ + struct si_pm4_state *pm4 = CALLOC_STRUCT(si_pm4_state); + + if (pm4 == NULL) + return NULL; + + pm4->chip_class = rctx->chip_class; + + return pm4; +} + uint32_t si_pm4_sync_flags(struct r600_context *rctx) { uint32_t cp_coher_cntl = 0; |