From 0e886219193472be2203f2afccea84029f014dbd Mon Sep 17 00:00:00 2001 From: Christian König Date: Sun, 29 May 2011 12:30:58 +0200 Subject: Initial r300g support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based uppon a patch from Pali Rohár . This seems to get at least YUV->RGB conversion working. So a simple "mplayer -vo vdpau" now seems to work fine. --- src/gallium/targets/xvmc-r300/target.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/gallium/targets/xvmc-r300/target.c (limited to 'src/gallium/targets/xvmc-r300/target.c') diff --git a/src/gallium/targets/xvmc-r300/target.c b/src/gallium/targets/xvmc-r300/target.c new file mode 100644 index 00000000000..9f673bf17e6 --- /dev/null +++ b/src/gallium/targets/xvmc-r300/target.c @@ -0,0 +1,24 @@ +#include "state_tracker/drm_driver.h" +#include "target-helpers/inline_debug_helper.h" +#include "radeon/drm/radeon_drm_public.h" +#include "r300/r300_public.h" + +static struct pipe_screen *create_screen(int fd) +{ + struct radeon_winsys *radeon; + struct pipe_screen *screen; + + radeon = radeon_drm_winsys_create(fd); + if (!radeon) + return NULL; + + screen = r300_screen_create(radeon); + if (!screen) + return NULL; + + screen = debug_screen_wrap(screen); + + return screen; +} + +DRM_DRIVER_DESCRIPTOR("r300", "radeon", create_screen) -- cgit v1.2.3