From: Jerome Glisse Date: Wed, 10 Nov 2010 21:46:44 +0000 (-0500) Subject: r600g: allow driver to work without submitting cmd to GPU X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e0230a85cf942aaae06b0295893def6a3e0f725;p=mesa.git r600g: allow driver to work without submitting cmd to GPU For driver performance analysis it usefull to be able to disable as much as possible the GPU interaction so that one can profile the userspace only. Signed-off-by: Jerome Glisse --- diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index bcbe71e1267..37e5baf8de8 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -1109,6 +1109,8 @@ 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)); +#else + *ctx->cfence = ctx->fence; #endif r600_context_update_fenced_list(ctx);