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

« back to all changes in this revision

Viewing changes to src/gallium/state_trackers/vega/vg_context.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:
33
33
#include "pipe/p_state.h"
34
34
#include "util/u_pointer.h"
35
35
#include "util/u_math.h"
 
36
#include "state_tracker/st_api.h"
36
37
 
37
38
#include "cso_cache/cso_hash.h"
38
39
#include "cso_cache/cso_context.h"
41
42
struct shaders_cache;
42
43
struct shader;
43
44
struct vg_shader;
 
45
struct mapi_table;
44
46
 
45
47
struct st_renderbuffer {
46
48
   enum pipe_format   format;
47
49
   struct pipe_surface *surface;
48
 
   struct pipe_texture *texture;
 
50
   struct pipe_resource *texture;
49
51
   VGint width, height;
50
52
};
51
53
 
54
56
   struct st_renderbuffer *strb;
55
57
   struct st_renderbuffer *dsrb;
56
58
 
57
 
   struct pipe_texture *alpha_mask;
58
 
 
59
 
   struct pipe_texture *blend_texture;
 
59
   struct pipe_sampler_view *alpha_mask_view;
 
60
 
 
61
   struct pipe_sampler_view *blend_texture_view;
 
62
 
 
63
 
 
64
   struct st_framebuffer_iface *iface;
 
65
   enum st_attachment_type strb_att;
60
66
 
61
67
   void *privateData;
62
68
};
84
90
 
85
91
struct vg_context
86
92
{
 
93
   struct st_context_iface iface;
 
94
   struct mapi_table *dispatch;
 
95
 
87
96
   struct pipe_context *pipe;
 
97
   enum pipe_format ds_format;
88
98
 
89
99
   struct {
90
100
      struct vg_state vg;
101
111
   VGErrorCode _error;
102
112
 
103
113
   struct st_framebuffer *draw_buffer;
 
114
   int32_t draw_buffer_invalid;
104
115
 
105
116
   struct cso_hash *owned_objects[VG_OBJECT_LAST];
106
117
 
113
124
   } clear;
114
125
 
115
126
   struct {
116
 
      struct pipe_buffer *cbuf;
 
127
      struct pipe_resource *cbuf;
117
128
      struct pipe_sampler_state sampler;
118
129
 
119
130
      struct vg_shader *union_fs;
126
137
 
127
138
   struct cso_context *cso_context;
128
139
 
129
 
   struct pipe_buffer *stencil_quad;
 
140
   struct pipe_resource *stencil_quad;
130
141
   VGfloat stencil_vertices[4][2][4];
131
142
 
132
143
   struct renderer *renderer;
135
146
 
136
147
   struct pipe_sampler_state blend_sampler;
137
148
   struct {
138
 
      struct pipe_buffer *buffer;
 
149
      struct pipe_resource *buffer;
139
150
      void *color_matrix_fs;
140
151
   } filter;
141
152
   struct vg_paint *default_paint;
145
156
   struct vg_shader *plain_vs;
146
157
   struct vg_shader *clear_vs;
147
158
   struct vg_shader *texture_vs;
148
 
   struct pipe_buffer *vs_const_buffer;
 
159
   struct pipe_resource *vs_const_buffer;
 
160
   struct pipe_vertex_element velems[2];
149
161
};
150
162
 
151
163
struct vg_object {