DRI2: report swap events correctly in direct rendered case
[mesa.git] / src / gallium / winsys / drm / radeon / core / radeon_r300.h
index 19c7ed26269f8edca23aeed98fdb878c1f877e35..e655dc32c85bc4a58795c4bb82c72993019549b9 100644 (file)
  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  * USE OR OTHER DEALINGS IN THE SOFTWARE. */
 
-/* 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"
+#ifndef RADEON_R300_H
+#define RADEON_R300_H
 
-#include "r300_winsys.h"
+#include "radeon_winsys.h"
 
-#include "radeon_buffer.h"
+void radeon_setup_winsys(int fd, struct radeon_winsys* winsys);
 
-/* protect us from bonghits */
-#ifndef RADEON_INFO_NUM_GB_PIPES
-#define RADEON_INFO_NUM_GB_PIPES 0
-#endif
-#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 r300_winsys*
-radeon_create_r300_winsys(int fd, struct radeon_winsys* old_winsys);
+#endif /* RADEON_R300_H */