~ubuntu-branches/ubuntu/precise/mesa-lts-quantal/precise-updates

« back to all changes in this revision

Viewing changes to src/gallium/targets/xvmc-r600/target.c

  • Committer: Package Import Robot
  • Author(s): Maarten Lankhorst
  • Date: 2012-11-30 20:58:34 UTC
  • Revision ID: package-import@ubuntu.com-20121130205834-gazuvne3fpwlf012
Tags: upstream-9.0
ImportĀ upstreamĀ versionĀ 9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "state_tracker/drm_driver.h"
 
2
#include "target-helpers/inline_debug_helper.h"
 
3
#include "radeon/drm/radeon_drm_public.h"
 
4
#include "r600/r600_public.h"
 
5
 
 
6
static struct pipe_screen *create_screen(int fd)
 
7
{
 
8
   struct radeon_winsys *radeon;
 
9
   struct pipe_screen *screen;
 
10
 
 
11
   radeon = radeon_drm_winsys_create(fd);
 
12
   if (!radeon)
 
13
      return NULL;
 
14
 
 
15
   screen = r600_screen_create(radeon);
 
16
   if (!screen)
 
17
      return NULL;
 
18
 
 
19
   screen = debug_screen_wrap(screen);
 
20
 
 
21
   return screen;
 
22
}
 
23
 
 
24
DRM_DRIVER_DESCRIPTOR("r600", "radeon", create_screen, NULL)