Mesa (master): r600g: allow driver to work without submitting cmd to GPU
Jerome Glisse
glisse at kemper.freedesktop.org
Wed Nov 10 21:53:37 UTC 2010
Module: Mesa
Branch: master
Commit: 8e0230a85cf942aaae06b0295893def6a3e0f725
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e0230a85cf942aaae06b0295893def6a3e0f725
Author: Jerome Glisse <jglisse at redhat.com>
Date: Wed Nov 10 16:46:44 2010 -0500
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 <jglisse at redhat.com>
---
src/gallium/winsys/r600/drm/r600_hw_context.c | 2 ++
1 files changed, 2 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 bcbe71e..37e5baf 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);
More information about the mesa-commit
mailing list