diff options
author | Ian Romanick <idr@us.ibm.com> | 2007-07-20 11:31:01 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2007-07-20 11:31:01 -0700 |
commit | ed82d5398a751cf755cf4168cbb79b181facc86f (patch) | |
tree | beb86d043f75033b628a205e6908f3688afbf2a8 | |
parent | 659209cb2d59c7b25df58d130d0649f8f899b693 (diff) |
Clean up flush command generation in addFlush2D.
-rw-r--r-- | linux-core/xgi_cmdlist.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/linux-core/xgi_cmdlist.c b/linux-core/xgi_cmdlist.c index 682c4ac1..b93541f3 100644 --- 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); |