Rev 4358 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4358 | Rev 4401 | ||
---|---|---|---|
Line 187... | Line 187... | ||
187 | uint32_t spins = 0; |
187 | uint32_t spins = 0; |
Line 188... | Line 188... | ||
188 | 188 | ||
189 | /* wtf, someone is waiting on a fence in flush_notify handler? */ |
189 | /* wtf, someone is waiting on a fence in flush_notify handler? */ |
Line 190... | Line 190... | ||
190 | assert(fence->state != NOUVEAU_FENCE_STATE_EMITTING); |
190 | assert(fence->state != NOUVEAU_FENCE_STATE_EMITTING); |
191 | 191 | ||
Line 192... | Line -... | ||
192 | if (fence->state < NOUVEAU_FENCE_STATE_EMITTED) { |
- | |
193 | nouveau_fence_emit(fence); |
- | |
194 | - | ||
195 | if (fence == screen->fence.current) |
192 | if (fence->state < NOUVEAU_FENCE_STATE_EMITTED) |
196 | nouveau_fence_new(screen, &screen->fence.current, FALSE); |
193 | nouveau_fence_emit(fence); |
197 | } |
194 | |
198 | if (fence->state < NOUVEAU_FENCE_STATE_FLUSHED) { |
195 | if (fence->state < NOUVEAU_FENCE_STATE_FLUSHED) |
- | 196 | if (nouveau_pushbuf_kick(screen->pushbuf, screen->pushbuf->channel)) |
|
- | 197 | return FALSE; |
|
Line 199... | Line 198... | ||
199 | if (nouveau_pushbuf_kick(screen->pushbuf, screen->pushbuf->channel)) |
198 | |
200 | return FALSE; |
199 | if (fence == screen->fence.current) |
Line 201... | Line 200... | ||
201 | } |
200 | nouveau_fence_next(screen); |