summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/egl/pipe_r300.c
diff options
context:
space:
mode:
authorBenjamin Franzke <[email protected]>2010-08-22 18:24:10 +0200
committerChia-I Wu <[email protected]>2010-08-24 11:50:36 +0800
commitce7016e8827ae64f6b7a92bbc4cdc51d3f8761cd (patch)
treebd97febd7256bf03da1876c1cfcd24f6428a233b /src/gallium/targets/egl/pipe_r300.c
parent9dd95b46c80e71eb858c373b636ad04c69c0d15d (diff)
targets/egl: rename pipe_radeon to pipe_r300
st/egl/x11/x11_screen.c requests a driver named r300 not radeon KNOWN ISSUE: breaks st/egl/kms/ st/egl/kms requests a pipe named "radeon" that will not be found now so why not leaving pipe_radeon there? that was possible as long we have only r300g. now there is also r600g for which st/egl/kms also requests a pipe named "radeon" (possible solution in later commit)
Diffstat (limited to 'src/gallium/targets/egl/pipe_r300.c')
-rw-r--r--src/gallium/targets/egl/pipe_r300.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/gallium/targets/egl/pipe_r300.c b/src/gallium/targets/egl/pipe_r300.c
new file mode 100644
index 00000000000..2fa495e8a2f
--- /dev/null
+++ b/src/gallium/targets/egl/pipe_r300.c
@@ -0,0 +1,27 @@
+
+#include "target-helpers/inline_debug_helper.h"
+#include "state_tracker/drm_driver.h"
+#include "radeon/drm/radeon_drm_public.h"
+#include "r300/r300_public.h"
+
+static struct pipe_screen *
+create_screen(int fd)
+{
+ struct r300_winsys_screen *sws;
+ struct pipe_screen *screen;
+
+ sws = r300_drm_winsys_screen_create(fd);
+ if (!sws)
+ return NULL;
+
+ screen = r300_screen_create(sws);
+ if (!screen)
+ return NULL;
+
+ screen = debug_screen_wrap(screen);
+
+ return screen;
+}
+
+PUBLIC
+DRM_DRIVER_DESCRIPTOR("r300", "r300", create_screen)