diff options
Diffstat (limited to 'sys/dev/pci/drm/radeon_state.c')
-rw-r--r-- | sys/dev/pci/drm/radeon_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/radeon_state.c b/sys/dev/pci/drm/radeon_state.c index 4863a9b9204..1de5d1693e7 100644 --- a/sys/dev/pci/drm/radeon_state.c +++ b/sys/dev/pci/drm/radeon_state.c @@ -1548,7 +1548,7 @@ static void radeon_cp_dispatch_vertex(struct drm_device * dev, static void radeon_cp_discard_buffer(struct drm_device * dev, struct drm_buf * buf) { drm_radeon_private_t *dev_priv = dev->dev_private; - drm_radeon_buf_priv_t *buf_priv = buf->dev_private; + drm_radeon_buf_priv_t *buf_priv = (drm_radeon_buf_priv_t *)buf; RING_LOCALS; buf_priv->age = ++dev_priv->sarea_priv->last_dispatch; |