Browse Source

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.
tags/android-x86-2.2-r2
Marek Olšák 14 years ago
parent
commit
89ee0d527c
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/gallium/winsys/radeon/drm/radeon_drm_bo.c

+ 1
- 0
src/gallium/winsys/radeon/drm/radeon_drm_bo.c View File

@@ -162,6 +162,7 @@ static void *radeon_bo_map_internal(struct pb_buffer *_buf,

if (flags & PB_USAGE_DONTBLOCK) {
if (radeon_bo_is_referenced_by_cs(cs, bo)) {
cs->flush_cs(cs->flush_data);
return NULL;
}


Loading…
Cancel
Save