aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_pm4.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-01-08 00:10:18 +0100
committerMarek Olšák <[email protected]>2015-01-08 00:10:36 +0100
commitd7cd9bfc7f4cf6ae63dae7e41086fb4f08f379c0 (patch)
tree483ab90d6053cd4bae6b57f25c6b0022f8fa9a50 /src/gallium/drivers/radeonsi/si_pm4.h
parente28f9d0e60468db429e75a27443f7df52da224a2 (diff)
Revert "radeonsi: reduce the size of si_pm4_state"
This reverts commit 9141d8855555e45a057970e78969e1518ad3617d. It broke OpenCL.
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pm4.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_pm4.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pm4.h b/src/gallium/drivers/radeonsi/si_pm4.h
index 388bb4b47f1..8680a9ef11c 100644
--- a/src/gallium/drivers/radeonsi/si_pm4.h
+++ b/src/gallium/drivers/radeonsi/si_pm4.h
@@ -29,8 +29,9 @@
#include "radeon/drm/radeon_winsys.h"
-#define SI_PM4_MAX_DW 140
-#define SI_PM4_MAX_BO 4
+#define SI_PM4_MAX_DW 256
+#define SI_PM4_MAX_BO 32
+#define SI_PM4_MAX_RELOCS 4
// forward defines
struct si_context;
@@ -53,6 +54,10 @@ 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;
};