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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

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)