diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-06 14:08:04 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-06 14:08:04 +0000 |
commit | fa394b24c2e8f15ecab7e5c278cb1dfa0169dc47 (patch) | |
tree | 6c9e64716a17c166f1bba273085e5404a7a20e3a /sys/dev/pci/drm/i915_drv.h | |
parent | 039d94bf4e7571a2a04f51b3370fd5cc6f011d51 (diff) |
The i915 vblank swap ioctl is fundamentally racy.
using it allowed rendering to continue while waiting for a vblank swap,
and often this lead to flickering and rendering a new scene before the
swap. this broke a lot of things.
With the removal of this swap, userland falls back to the old way of
waiting for the vblank then doing the swap itself, this is smooth
enough.
I decided independantly to kill this, but the intel guys recently
concurred. Comment change comes from Eric Anholt at intel.
Diffstat (limited to 'sys/dev/pci/drm/i915_drv.h')
-rw-r--r-- | sys/dev/pci/drm/i915_drv.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/dev/pci/drm/i915_drv.h b/sys/dev/pci/drm/i915_drv.h index 275a1e42e4e..d2078a21642 100644 --- a/sys/dev/pci/drm/i915_drv.h +++ b/sys/dev/pci/drm/i915_drv.h @@ -76,13 +76,6 @@ struct mem_block { struct drm_file *file_priv; /* NULL: free, -1: heap, other: real files */ }; -typedef struct _drm_i915_vbl_swap { - struct list_head head; - drm_drawable_t drw_id; - unsigned int pipe; - unsigned int sequence; -} drm_i915_vbl_swap_t; - typedef struct drm_i915_private { drm_local_map_t *sarea; drm_local_map_t *mmio_map; @@ -117,10 +110,6 @@ typedef struct drm_i915_private { struct mem_block *agp_heap; unsigned int sr01, adpa, ppcr, dvob, dvoc, lvds; - DRM_SPINTYPE swaps_lock; - drm_i915_vbl_swap_t vbl_swaps; - unsigned int swaps_pending; - /* Register state */ u8 saveLBB; u32 saveDSPACNTR; |