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

« back to all changes in this revision

Viewing changes to src/gallium/drivers/nouveau/nouveau_stateobj.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:
151
151
        if (so->start_alloc <= so->cur_start) {
152
152
                debug_printf("exceeding num_start size\n");
153
153
                assert(0);
154
 
        } else
 
154
        }
155
155
#endif /* DEBUG_NOUVEAU_STATEOBJ */
156
 
                start = so->start;
 
156
        start = so->start;
157
157
 
158
158
#ifdef DEBUG_NOUVEAU_STATEOBJ
159
159
        if (so->cur_start > 0 && start[so->cur_start - 1].size > so->cur) {
162
162
        }
163
163
#endif /* DEBUG_NOUVEAU_STATEOBJ */
164
164
 
165
 
        so->start = start;
166
165
        start[so->cur_start].gr = gr;
167
166
        start[so->cur_start].mthd = mthd;
168
167
        start[so->cur_start].size = size;
193
192
        if (so->reloc_alloc <= so->cur_reloc) {
194
193
                debug_printf("exceeding num_reloc size\n");
195
194
                assert(0);
196
 
        } else
 
195
        }
197
196
#endif /* DEBUG_NOUVEAU_STATEOBJ */
198
 
                r = so->reloc;
 
197
        r = so->reloc;
199
198
 
200
 
        so->reloc = r;
201
199
        r[so->cur_reloc].bo = NULL;
202
200
        nouveau_bo_ref(bo, &(r[so->cur_reloc].bo));
203
201
        r[so->cur_reloc].gr = so->start[so->cur_start-1].gr;
271
269
static INLINE void
272
270
so_emit_reloc_markers(struct nouveau_channel *chan, struct nouveau_stateobj *so)
273
271
{
274
 
        struct nouveau_grobj *gr = NULL;
275
272
        unsigned i;
276
273
        int ret = 0;
277
274
 
289
286
                }
290
287
#endif /* DEBUG_NOUVEAU_STATEOBJ */
291
288
 
292
 
                /* The object needs to be bound and the system must know the
293
 
                 * subchannel is being used. Otherwise it will discard it.
 
289
                /* We don't need to autobind, since there are enough subchannels
 
290
                 * for all objects we use. If this is changed, account for the extra
 
291
                 * space in callers of this function.
294
292
                 */
295
 
                if (gr != r->gr) {
296
 
                        BEGIN_RING(chan, r->gr, 0x100, 1);
297
 
                        OUT_RING(chan, 0);
298
 
                        gr = r->gr;
299
 
                }
 
293
                assert(r->gr->bound != NOUVEAU_GROBJ_UNBOUND);
300
294
 
301
295
                /* Some relocs really don't like to be hammered,
302
296
                 * NOUVEAU_BO_DUMMY makes sure it only