diff options
author | Marek Olšák <[email protected]> | 2011-07-15 21:02:22 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-07-15 21:48:29 +0200 |
commit | 036fb079089a0494b573761cb8cd598a41519a02 (patch) | |
tree | 3bf2c273312b97f7e0d776f3b876fc7869f7c290 /src | |
parent | dade65505bdf62da448479e316cc7f4f2da22417 (diff) |
r600g: print to stderr that a CS has been rejected by the kernel
Just fixing the warning that r is unused.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/winsys/r600/drm/r600_hw_context.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 922367d85f1..365ab1533e1 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -1537,6 +1537,10 @@ void r600_context_flush(struct r600_context *ctx) chunk_array[1] = (uint64_t)(uintptr_t)&chunks[1]; r = drmCommandWriteRead(ctx->radeon->fd, DRM_RADEON_CS, &drmib, sizeof(struct drm_radeon_cs)); + if (r) { + fprintf(stderr, "radeon: The kernel rejected CS, " + "see dmesg for more information.\n"); + } #else *ctx->radeon->cfence = ctx->radeon->fence; #endif |