projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dade655
)
r600g: print to stderr that a CS has been rejected by the kernel
author
Marek Olšák
<maraeo@gmail.com>
Fri, 15 Jul 2011 19:02:22 +0000
(21:02 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Fri, 15 Jul 2011 19:48:29 +0000
(21:48 +0200)
Just fixing the warning that r is unused.
src/gallium/winsys/r600/drm/r600_hw_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/r600/drm/r600_hw_context.c
b/src/gallium/winsys/r600/drm/r600_hw_context.c
index
922367d
..
365ab15
100644
(file)
--- 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