mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
r600g: real fix for non 3.8 kernel
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
This commit is contained in:
parent
72916698b0
commit
d8d17441e2
1 changed files with 5 additions and 3 deletions
|
|
@ -869,9 +869,11 @@ static INLINE unsigned r600_context_bo_reloc(struct r600_context *ctx,
|
|||
* look serialized from driver pov
|
||||
*/
|
||||
if (!ring->flushing) {
|
||||
if (ring == &ctx->rings.gfx && ctx->rings.dma.cs) {
|
||||
/* flush dma ring */
|
||||
ctx->rings.dma.flush(ctx, RADEON_FLUSH_ASYNC);
|
||||
if (ring == &ctx->rings.gfx) {
|
||||
if (ctx->rings.dma.cs) {
|
||||
/* flush dma ring */
|
||||
ctx->rings.dma.flush(ctx, RADEON_FLUSH_ASYNC);
|
||||
}
|
||||
} else {
|
||||
/* flush gfx ring */
|
||||
ctx->rings.gfx.flush(ctx, RADEON_FLUSH_ASYNC);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue