DRI2: report swap events correctly in direct rendered case
[mesa.git] / src / gallium / winsys / drm / radeon / core / radeon_r300.h
index 7f0246cc7adc097c7d169fdf911009ac8a97304e..e655dc32c85bc4a58795c4bb82c72993019549b9 100644 (file)
 #ifndef RADEON_R300_H
 #define RADEON_R300_H
 
-/* XXX WTF is this! I shouldn't have to include those first three! FUCK! */
-#include <stdint.h>
-#include <stdlib.h>
-#include "drm.h"
-#include "radeon_drm.h"
-#include "radeon_cs.h"
+#include "radeon_winsys.h"
 
-#include "r300_winsys.h"
-
-#include "radeon_buffer.h"
-
-/* protect us from bonghits */
-#ifndef RADEON_INFO_DEVICE_ID
-#define RADEON_INFO_DEVICE_ID 0
-#endif
-#ifndef DRM_RADEON_INFO
-#define DRM_RADEON_INFO 0x1
-struct drm_radeon_info {
-       uint32_t                request;
-       uint32_t                pad;
-       uint64_t                value;
-};
-#endif
-
-struct radeon_winsys;
-
-struct r300_winsys*
-radeon_create_r300_winsys(int fd, struct radeon_winsys* old_winsys);
+void radeon_setup_winsys(int fd, struct radeon_winsys* winsys);
 
 #endif /* RADEON_R300_H */