summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/drm/radeon/core/radeon_r300.h
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-05-11 09:04:15 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-05-11 09:05:33 -0700
commit2e22bd8460ebbb2dd85417d8e5e670fa651d0da9 (patch)
tree8a1898d0bd5863b090450c2217c4be2f8a6b75d9 /src/gallium/winsys/drm/radeon/core/radeon_r300.h
parent7c3d7353d7b46f5ce2b411f08f9e4c158f1610e0 (diff)
radeon-gallium: Support new info ioctls in addition to classic getparams.
This makes non-hybrid kernels like newttm from drm-next-radeon work while avoiding breakage with Fedora/Ubuntu/etc.
Diffstat (limited to 'src/gallium/winsys/drm/radeon/core/radeon_r300.h')
-rw-r--r--src/gallium/winsys/drm/radeon/core/radeon_r300.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/radeon/core/radeon_r300.h b/src/gallium/winsys/drm/radeon/core/radeon_r300.h
index 5c373cd084..98586746cd 100644
--- a/src/gallium/winsys/drm/radeon/core/radeon_r300.h
+++ b/src/gallium/winsys/drm/radeon/core/radeon_r300.h
@@ -31,5 +31,16 @@
#include "radeon_buffer.h"
+/* 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
+#endif
+
struct r300_winsys*
radeon_create_r300_winsys(int fd, struct radeon_winsys* old_winsys);