projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8b2d36
)
r600g: allow driver to work without submitting cmd to GPU
author
Jerome Glisse
<jglisse@redhat.com>
Wed, 10 Nov 2010 21:46:44 +0000
(16:46 -0500)
committer
Jerome Glisse
<jglisse@redhat.com>
Wed, 10 Nov 2010 21:49:50 +0000
(16:49 -0500)
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@redhat.com>
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 bcbe71e1267388d3e0377a68d93de583163b15aa..37e5baf8de8832bc35879de9e5a67e3c32619f60 100644
(file)
--- 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);