summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-04-22 09:38:03 +0200
committerMarek Olšák <[email protected]>2016-04-26 21:37:07 +0200
commit80e5fb60b40c491acd182dc451236b71e55c11ea (patch)
tree8e453615ab93600888b3498c32f988f84a65c38f /src
parent2b4b5ebfcfa722cefe15bb694c69f3f77c1a2478 (diff)
radeonsi: add RW_BUFFERS only once in si_ce_needed_cs_space
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_hw_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_hw_context.c b/src/gallium/drivers/radeonsi/si_hw_context.c
index e6018f3b29d..5ab20d8e0d9 100644
--- a/src/gallium/drivers/radeonsi/si_hw_context.c
+++ b/src/gallium/drivers/radeonsi/si_hw_context.c
@@ -43,13 +43,13 @@ static unsigned si_ce_needed_cs_space(void)
unsigned space = 0;
space += si_descriptor_list_cs_space(SI_NUM_CONST_BUFFERS, 4);
- space += si_descriptor_list_cs_space(SI_NUM_RW_BUFFERS, 4);
space += si_descriptor_list_cs_space(SI_NUM_SHADER_BUFFERS, 4);
space += si_descriptor_list_cs_space(SI_NUM_SAMPLERS, 16);
space += si_descriptor_list_cs_space(SI_NUM_IMAGES, 8);
-
space *= SI_NUM_SHADERS;
+ space += si_descriptor_list_cs_space(SI_NUM_RW_BUFFERS, 4);
+
/* Increment CE counter packet */
space += 2;