diff options
author | Marek Olšák <[email protected]> | 2014-12-30 23:49:59 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-01-07 12:06:43 +0100 |
commit | 9141d8855555e45a057970e78969e1518ad3617d (patch) | |
tree | ac48f03712634f6dfd47c8f2a8081790ca25f3ef /src/gallium/drivers/radeonsi/si_pm4.h | |
parent | 1b82eb677de63ec49f56800b81ac49b79fc5576a (diff) |
radeonsi: reduce the size of si_pm4_state
- the relocs array is unused, remove it
- ndw is at most 115 (init), set 140 as the maximum
- compute needs 4 buffers per state, graphics only needs 1; set 4 as the maximum
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pm4.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pm4.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pm4.h b/src/gallium/drivers/radeonsi/si_pm4.h index 8680a9ef11c..388bb4b47f1 100644 --- a/src/gallium/drivers/radeonsi/si_pm4.h +++ b/src/gallium/drivers/radeonsi/si_pm4.h @@ -29,9 +29,8 @@ #include "radeon/drm/radeon_winsys.h" -#define SI_PM4_MAX_DW 256 -#define SI_PM4_MAX_BO 32 -#define SI_PM4_MAX_RELOCS 4 +#define SI_PM4_MAX_DW 140 +#define SI_PM4_MAX_BO 4 // forward defines struct si_context; @@ -54,10 +53,6 @@ struct si_pm4_state enum radeon_bo_usage bo_usage[SI_PM4_MAX_BO]; enum radeon_bo_priority bo_priority[SI_PM4_MAX_BO]; - /* relocs for shader data */ - unsigned nrelocs; - unsigned relocs[SI_PM4_MAX_RELOCS]; - bool compute_pkt; }; |