mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 05:38:16 +02:00
Fix batch.ptr when dropping a batchbuffer segment due to zero cliprects.
This commit is contained in:
parent
fff749e893
commit
6d43ce5402
1 changed files with 2 additions and 1 deletions
|
|
@ -142,7 +142,6 @@ void intelFlushBatchLocked( intelContextPtr intel,
|
|||
* single buffer.
|
||||
*/
|
||||
if (intel->numClipRects == 0 && !ignore_cliprects) {
|
||||
intel->batch.space = intel->batch.size;
|
||||
|
||||
/* Without this yeild, an application with no cliprects can hog
|
||||
* the hardware. Without unlocking, the effect is much worse -
|
||||
|
|
@ -157,6 +156,8 @@ void intelFlushBatchLocked( intelContextPtr intel,
|
|||
/* Note that any state thought to have been emitted actually
|
||||
* hasn't:
|
||||
*/
|
||||
intel->batch.ptr -= (intel->batch.size - intel->batch.space);
|
||||
intel->batch.space = intel->batch.size;
|
||||
intel->vtbl.lost_hardware( intel );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue