r300g: flush CS in bo_map even if we get USAGE_DONTBLOCK
authorMarek Olšák <maraeo@gmail.com>
Mon, 14 Feb 2011 22:15:55 +0000 (23:15 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 14 Feb 2011 22:34:45 +0000 (23:34 +0100)
commit89ee0d527c689b70a08c1eb396486d47da7f120d
tree27e2fb2e415af4b203414259c6d285bccd642bbb
parentec21eabe2a343b875c4c23b410fea8bfc204f917
r300g: flush CS in bo_map even if we get USAGE_DONTBLOCK

Because an app may do something like this:

while (!(ptr = bo_map(..., DONT_BLOCK))) {
    /* Do some other work. */
}

And it would be looping endlessly if we didn't flush.
src/gallium/winsys/radeon/drm/radeon_drm_bo.c