diff options
author | Jerome Glisse <[email protected]> | 2010-11-10 16:46:44 -0500 |
---|---|---|
committer | Jerome Glisse <[email protected]> | 2010-11-10 16:49:50 -0500 |
commit | 8e0230a85cf942aaae06b0295893def6a3e0f725 (patch) | |
tree | 8ebb1fb22586ce13b72923eb118ac52bbd54bec9 /src/gallium/winsys | |
parent | e8b2d367234f554dafa968455b8d0d3e332058eb (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | 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 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); |