Parcourir la source

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

Just fixing the warning that r is unused.
tags/mesa-8.0-rc1
Marek Olšák il y a 14 ans
Parent
révision
036fb07908
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4
    0
      src/gallium/winsys/r600/drm/r600_hw_context.c

+ 4
- 0
src/gallium/winsys/r600/drm/r600_hw_context.c Voir le fichier

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

Chargement…
Annuler
Enregistrer