From 5f67507e65a38cf6d33290299937c6bad98fcc6e Mon Sep 17 00:00:00 2001 From: Gareth Hughes Date: Sun, 28 Jan 2001 07:18:08 +0000 Subject: Fix depth clears properly this time. Update all instances of drmRadeonClear() to the new interface. --- linux/radeon_drm.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'linux/radeon_drm.h') diff --git a/linux/radeon_drm.h b/linux/radeon_drm.h index 9645f394..643253d2 100644 --- a/linux/radeon_drm.h +++ b/linux/radeon_drm.h @@ -276,16 +276,18 @@ typedef struct drm_radeon_fullscreen { #define CLEAR_Y2 3 #define CLEAR_DEPTH 4 +typedef union drm_radeon_clear_rect { + float f[5]; + unsigned int ui[5]; +} drm_radeon_clear_rect_t; + typedef struct drm_radeon_clear { unsigned int flags; unsigned int clear_color; unsigned int clear_depth; unsigned int color_mask; unsigned int depth_mask; - union { - float f[5]; - unsigned int ui[5]; - } rect; + drm_radeon_clear_rect_t *depth_boxes; } drm_radeon_clear_t; typedef struct drm_radeon_vertex { -- cgit v1.2.3