r600g: print to stderr that a CS has been rejected by the kernel

Just fixing the warning that r is unused.
This commit is contained in:
Marek Olšák 2011-07-15 21:02:22 +02:00
parent dade65505b
commit 036fb07908
1 changed files with 4 additions and 0 deletions

View File

@ -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