diff options
author | Vadim Girlin <[email protected]> | 2011-06-29 16:29:18 +0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2011-06-30 16:39:08 -0400 |
commit | 61c976c3ccc815aaf0128eea835aee9667cd8bbe (patch) | |
tree | 5ed481c4e30555c7c7261a1968049c3b1a3292c2 /src/gallium/winsys | |
parent | 9e9d73ef100bb49c832d6f8c62cfcabbb5225928 (diff) |
r600g: fix check for empty cs
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/r600/drm/r600_hw_context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index f89f24c4d18..19dc729d00a 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -62,6 +62,8 @@ void r600_init_cs(struct r600_context *ctx) ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_CONTEXT_CONTROL, 1, 0); ctx->pm4[ctx->pm4_cdwords++] = 0x80000000; ctx->pm4[ctx->pm4_cdwords++] = 0x80000000; + + ctx->init_dwords = ctx->pm4_cdwords; } static void INLINE r600_context_update_fenced_list(struct r600_context *ctx) @@ -1496,7 +1498,7 @@ void r600_context_flush(struct r600_context *ctx) int r; struct r600_block *enable_block = NULL; - if (!ctx->pm4_cdwords) + if (ctx->pm4_cdwords == ctx->init_dwords) return; /* suspend queries */ |