summaryrefslogtreecommitdiff
path: root/linux/radeon_drm.h
diff options
context:
space:
mode:
authorGareth Hughes <gareth@users.sourceforge.net>2001-01-28 07:18:08 +0000
committerGareth Hughes <gareth@users.sourceforge.net>2001-01-28 07:18:08 +0000
commit5f67507e65a38cf6d33290299937c6bad98fcc6e (patch)
tree1b8e841d9d24f05660e4580bb7e83464d0302255 /linux/radeon_drm.h
parenta68dddf19caf0106479b71aab5a8de552a5ed596 (diff)
Fix depth clears properly this time. Update all instances of
drmRadeonClear() to the new interface.
Diffstat (limited to 'linux/radeon_drm.h')
-rw-r--r--linux/radeon_drm.h10
1 files changed, 6 insertions, 4 deletions
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 {