diff options
author | Michel Dänzer <[email protected]> | 2012-05-15 17:14:12 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2012-05-16 18:30:07 +0200 |
commit | 0201c7d0af8424a8b8fd44243e3487898c11f96e (patch) | |
tree | da3bfa035d2653bf1b7609c02167c63f13ae9750 /src/gallium/drivers | |
parent | 9af1ba565dfd5cef9ee938bb7c04767d14878fbf (diff) |
radeonsi: Bump MAX_DRAW_CS_DWORDS.
I missed this when updating si_context_draw().
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/evergreen_hw_context.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/r600_hw_context.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/r600_hw_context_priv.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/evergreen_hw_context.c b/src/gallium/drivers/radeonsi/evergreen_hw_context.c index 0ac99283e4d..4cf6a9e5253 100644 --- a/src/gallium/drivers/radeonsi/evergreen_hw_context.c +++ b/src/gallium/drivers/radeonsi/evergreen_hw_context.c @@ -481,7 +481,7 @@ void si_context_draw(struct r600_context *ctx, const struct r600_draw *draw) ndwords += 6; /* when increasing ndwords, bump the max limit too */ - assert(ndwords <= R600_MAX_DRAW_CS_DWORDS); + assert(ndwords <= SI_MAX_DRAW_CS_DWORDS); /* queries need some special values * (this is non-zero if any query is active) */ diff --git a/src/gallium/drivers/radeonsi/r600_hw_context.c b/src/gallium/drivers/radeonsi/r600_hw_context.c index 2ba77b736a6..c0b85ba6d20 100644 --- a/src/gallium/drivers/radeonsi/r600_hw_context.c +++ b/src/gallium/drivers/radeonsi/r600_hw_context.c @@ -317,7 +317,7 @@ void r600_need_cs_space(struct r600_context *ctx, unsigned num_dw, num_dw += ctx->pm4_dirty_cdwords; /* The upper-bound of how much a draw command would take. */ - num_dw += R600_MAX_DRAW_CS_DWORDS; + num_dw += SI_MAX_DRAW_CS_DWORDS; } /* Count in queries_suspend. */ diff --git a/src/gallium/drivers/radeonsi/r600_hw_context_priv.h b/src/gallium/drivers/radeonsi/r600_hw_context_priv.h index 7d5394e9f58..f5ad4abceeb 100644 --- a/src/gallium/drivers/radeonsi/r600_hw_context_priv.h +++ b/src/gallium/drivers/radeonsi/r600_hw_context_priv.h @@ -30,7 +30,7 @@ #include "util/u_hash_table.h" #include "os/os_thread.h" -#define R600_MAX_DRAW_CS_DWORDS 17 +#define SI_MAX_DRAW_CS_DWORDS 18 #define PKT_COUNT_C 0xC000FFFF #define PKT_COUNT_S(x) (((x) & 0x3FFF) << 16) |