diff options
author | Nicolai Hähnle <[email protected]> | 2016-05-06 12:42:05 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-06-01 22:52:18 +0200 |
commit | d6211a61b0c8cd81509cbbf0e75766eb4be30bed (patch) | |
tree | c8996d1c519e5fc6bf978e60a504c202956e3149 /src/gallium/drivers/radeon | |
parent | 46ad3561be0b820333a515941bfb220591402573 (diff) |
gallium/radeon: use cs_check_space throughout
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/r600_pipe_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index c00e5848e3a..fa766977aa0 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -168,7 +168,7 @@ void r600_need_dma_space(struct r600_common_context *ctx, unsigned num_dw, /* Flush if there's not enough space, or if the memory usage per IB * is too large. */ - if ((num_dw + ctx->dma.cs->cdw) > ctx->dma.cs->max_dw || + if (!ctx->ws->cs_check_space(ctx->dma.cs, num_dw) || !ctx->ws->cs_memory_below_limit(ctx->dma.cs, vram, gtt)) { ctx->dma.flush(ctx, RADEON_FLUSH_ASYNC, NULL); assert((num_dw + ctx->dma.cs->cdw) <= ctx->dma.cs->max_dw); |