diff options
author | Jerome Glisse <[email protected]> | 2010-09-29 15:39:40 -0400 |
---|---|---|
committer | Jerome Glisse <[email protected]> | 2010-09-29 15:40:32 -0400 |
commit | 6abd7771c6ab2c733b20835e211060dd18fd847d (patch) | |
tree | 2c677af1f15d1f6aac009af84e7fed7474592cea /src/gallium/targets/dri-r600/target.c | |
parent | 7e536371f901e97cb4d73c6662f79a904c943e17 (diff) |
r600g: more cleanup
Signed-off-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/targets/dri-r600/target.c')
-rw-r--r-- | src/gallium/targets/dri-r600/target.c | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/src/gallium/targets/dri-r600/target.c b/src/gallium/targets/dri-r600/target.c index 2c1b2f5be45..8753e2bab17 100644 --- a/src/gallium/targets/dri-r600/target.c +++ b/src/gallium/targets/dri-r600/target.c @@ -1,33 +1,9 @@ - #include "state_tracker/drm_driver.h" #include "target-helpers/inline_debug_helper.h" #include "r600/drm/r600_drm_public.h" #include "r600/r600_public.h" -#if 0 -static struct pipe_screen * -create_screen(int fd) -{ - struct radeon *rw; - struct pipe_screen *screen; - - rw = r600_drm_winsys_create(fd); - if (!rw) - return NULL; - - screen = r600_screen_create(rw); - if (!screen) - return NULL; - - screen = debug_screen_wrap(screen); - - return screen; -} -#else -struct radeon *r600_new(int fd, unsigned device); -struct pipe_screen *r600_screen_create2(struct radeon *radeon); -static struct pipe_screen * -create_screen(int fd) +static struct pipe_screen *create_screen(int fd) { struct radeon *radeon; struct pipe_screen *screen; @@ -36,7 +12,7 @@ create_screen(int fd) if (!radeon) return NULL; - screen = r600_screen_create2(radeon); + screen = r600_screen_create(radeon); if (!screen) return NULL; @@ -44,6 +20,5 @@ create_screen(int fd) return screen; } -#endif DRM_DRIVER_DESCRIPTOR("r600", "radeon", create_screen) |