~ubuntu-branches/ubuntu/natty/mesa/natty-proposed

« back to all changes in this revision

Viewing changes to src/gallium/state_trackers/python/st_device.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Hooker, Robert Hooker, Christopher James Halse Rogers
  • Date: 2010-09-14 08:55:40 UTC
  • mfrom: (1.2.28 upstream)
  • Revision ID: james.westby@ubuntu.com-20100914085540-m4fpl0hdjlfd4jgz
Tags: 7.9~git20100909-0ubuntu1
[ Robert Hooker ]
* New upstream git snapshot up to commit 94118fe2d4b1e5 (LP: #631413)
* New features include ATI HD5xxx series support in r600, and a vastly
  improved glsl compiler.
* Remove pre-generated .pc's, use the ones generated at build time
  instead.
* Remove all references to mesa-utils now that its no longer shipped
  with the mesa source.
* Disable the experimental ARB_fragment_shader option by default on
  i915, it exposes incomplete functionality that breaks KDE compositing
  among other things. It can be enabled via driconf still. (LP: #628930).

[ Christopher James Halse Rogers ]
* debian/patches/04_osmesa_version.diff:
  - Refresh for new upstream
* Bugs fixed in this release:
  - Fixes severe rendering corruption in Unity on radeon (LP: #628727,
    LP: #596292, LP: #599741, LP: #630315, LP: #613694, LP: #599741).
  - Also fixes rendering in gnome-shell (LP: #578619).
  - Flickering in OpenGL apps on radeon (LP: #626943, LP: #610541).
  - Provides preliminary support for new intel chips (LP: #601052).
* debian/rules:
  - Update configure flags to match upstream reshuffling.
  - Explicitly remove gallium DRI drivers that we don't want to ship.
* Update debian/gbp.conf for this Maverick-specific packaging
* libegl1-mesa-dri-x11,kms: There are no longer separate kms or x11 drivers
  for EGL, libegl1-mesa-drivers now contains a single driver that provides
  both backends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
struct st_surface
42
42
{
43
 
   struct pipe_texture *texture;
 
43
   struct pipe_resource *texture;
44
44
   unsigned face;
45
45
   unsigned level;
46
46
   unsigned zslice;
47
47
};
48
48
 
49
49
 
50
 
struct st_context {
 
50
struct st_context
 
51
{
51
52
   struct st_device *st_dev;
52
53
   
53
54
   struct pipe_context *pipe;
58
59
   void *fs;
59
60
   void *gs;
60
61
 
61
 
   struct pipe_texture *default_texture;
62
 
   struct pipe_texture *fragment_sampler_textures[PIPE_MAX_SAMPLERS];
63
 
   struct pipe_texture *vertex_sampler_textures[PIPE_MAX_VERTEX_SAMPLERS];
 
62
   struct pipe_resource *default_texture;
 
63
   struct pipe_sampler_view *fragment_sampler_views[PIPE_MAX_SAMPLERS];
 
64
   struct pipe_sampler_view *vertex_sampler_views[PIPE_MAX_VERTEX_SAMPLERS];
64
65
   
65
66
   unsigned num_vertex_buffers;
66
67
   struct pipe_vertex_buffer vertex_buffers[PIPE_MAX_ATTRIBS];
72
73
};
73
74
 
74
75
 
75
 
struct st_device {
 
76
struct st_device
 
77
{
76
78
   /* FIXME: we also need to refcount for textures and surfaces... */
77
79
   struct pipe_reference reference;
78
80
 
79
 
   const struct st_winsys *st_ws; 
80
 
 
81
 
   struct pipe_screen *real_screen;
82
81
   struct pipe_screen *screen;
83
82
};
84
83
 
86
85
static INLINE struct pipe_surface *
87
86
st_pipe_surface(struct st_surface *surface, unsigned usage) 
88
87
{
89
 
   struct pipe_texture *texture = surface->texture;
 
88
   struct pipe_resource *texture = surface->texture;
90
89
   struct pipe_screen *screen = texture->screen;
91
90
   return screen->get_tex_surface(screen, texture, surface->face, surface->level, surface->zslice, usage);
92
91
}