diff options
author | Marek Olšák <[email protected]> | 2010-09-15 03:46:10 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-09-15 04:29:18 +0200 |
commit | 0b9eb5c9bb03e5134d9a41786178100109e80c5a (patch) | |
tree | c6d7f785f7088811be8db93eb281cddb6547c186 /src/gallium/drivers | |
parent | fd7f70af4897e4e31b11562eb1c473f0ee00fce5 (diff) |
r300g: prevent creating multiple winsys BOs for the same handle
This fixes a DRM deadlock in the cubestorm xscreensaver, because somehow
there must not be 2 different BOs relocated in one CS if both BOs back
the same handle. I was told it is impossible to happen, but apparently
it is not, or there is something else wrong.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r300/r300_blit.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c index 77f0e273e10..91a374a5838 100644 --- a/src/gallium/drivers/r300/r300_blit.c +++ b/src/gallium/drivers/r300/r300_blit.c @@ -263,10 +263,6 @@ static void r300_clear(struct pipe_context* pipe, zstex->hiz_in_use[fb->zsbuf->level])) { r300->hyperz_state.dirty = TRUE; } - - /* XXX this flush "fixes" a hardlock in the cubestorm xscreensaver */ - if (r300->flush_counter == 0) - pipe->flush(pipe, 0, NULL); } /* Clear a region of a color surface to a constant value. */ |