~ubuntu-branches/ubuntu/raring/mesa/raring-proposed

« back to all changes in this revision

Viewing changes to src/gallium/targets/xorg-radeon/radeon_target.c

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2011-06-19 21:26:00 UTC
  • mfrom: (1.6.1 upstream) (3.3.18 sid)
  • mto: (3.3.20 sid)
  • mto: This revision was merged to the branch mainline in revision 145.
  • Revision ID: james.westby@ubuntu.com-20110619212600-rleaapdmnbtstekb
Tags: 7.11~0-2
Thank you sbuild for giving a green light when that's not actually the
case. Fix missing Pre-Depends for the libegl1-mesa-drivers package
(multiarch-support).

Show diffs side-by-side

added added

removed removed

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