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
@@ -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; | |||
} | |||