projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
659209c
)
Clean up flush command generation in addFlush2D.
author
Ian Romanick
<idr@us.ibm.com>
Fri, 20 Jul 2007 18:31:01 +0000
(11:31 -0700)
committer
Ian Romanick
<idr@us.ibm.com>
Fri, 20 Jul 2007 18:31:01 +0000
(11:31 -0700)
linux-core/xgi_cmdlist.c
patch
|
blob
|
history
diff --git
a/linux-core/xgi_cmdlist.c
b/linux-core/xgi_cmdlist.c
index
682c4ac
..
b93541f
100644
(file)
--- a/
linux-core/xgi_cmdlist.c
+++ b/
linux-core/xgi_cmdlist.c
@@
-280,11
+280,9
@@
static void addFlush2D(struct xgi_info * info)
lastBatchVirtAddr[1] = BEGIN_LINK_ENABLE_MASK + 0x08;
lastBatchVirtAddr[2] = flushBatchHWAddr >> 4;
lastBatchVirtAddr[3] = 0;
-
- //barrier();
-
- // BTYPE_CTRL & NO debugID
- lastBatchVirtAddr[0] = (0x20 << 22) + (BEGIN_VALID_MASK);
+ wmb();
+ lastBatchVirtAddr[0] = (get_batch_command(BTYPE_CTRL) << 24)
+ | (BEGIN_VALID_MASK);
triggerHWCommandList(info, 1);