mesa.git
14 years agonv50: update to handle new sampler view state
Christoph Bumiller [Thu, 25 Feb 2010 15:39:58 +0000 (16:39 +0100)]
nv50: update to handle new sampler view state

14 years agogallium/util: rewrap comment to fit in 80 columns
Brian Paul [Thu, 25 Feb 2010 15:05:53 +0000 (08:05 -0700)]
gallium/util: rewrap comment to fit in 80 columns

14 years agogallium: added util/u_sampler.c to Makefile
Brian Paul [Thu, 25 Feb 2010 15:04:29 +0000 (08:04 -0700)]
gallium: added util/u_sampler.c to Makefile

14 years agodocs: Document sampler view entry points.
Michal Krol [Thu, 25 Feb 2010 14:33:15 +0000 (15:33 +0100)]
docs: Document sampler view entry points.

14 years agocell: Fix after sampler view changes.
Michal Krol [Thu, 25 Feb 2010 14:16:18 +0000 (15:16 +0100)]
cell: Fix after sampler view changes.

Did not test build.

14 years agonv50: Fix after sampler view changes.
Michal Krol [Thu, 25 Feb 2010 13:56:19 +0000 (14:56 +0100)]
nv50: Fix after sampler view changes.

Did not test build.

14 years agonv40: Fix after sampler view changes.
Michal Krol [Thu, 25 Feb 2010 13:46:31 +0000 (14:46 +0100)]
nv40: Fix after sampler view changes.

Did not test build.

14 years agonv30: Fix after sampler view changes.
Michal Krol [Thu, 25 Feb 2010 13:40:56 +0000 (14:40 +0100)]
nv30: Fix after sampler view changes.

Did not test build.

14 years agodocs: Update after sampler view changes.
Michal Krol [Thu, 25 Feb 2010 13:27:34 +0000 (14:27 +0100)]
docs: Update after sampler view changes.

14 years agopython: Fix typo.
Michal Krol [Thu, 25 Feb 2010 13:21:50 +0000 (14:21 +0100)]
python: Fix typo.

14 years agopython: Fix after sampler view changes.
Michal Krol [Thu, 25 Feb 2010 13:19:54 +0000 (14:19 +0100)]
python: Fix after sampler view changes.

14 years agogallium: Silence compiler warnings.
michal [Thu, 10 Dec 2009 08:29:15 +0000 (09:29 +0100)]
gallium: Silence compiler warnings.

14 years agollvmpipe: Fix after sampler view changes.
michal [Thu, 10 Dec 2009 08:23:15 +0000 (09:23 +0100)]
llvmpipe: Fix after sampler view changes.

14 years agor300: Fix after sampler view changes.
michal [Thu, 10 Dec 2009 07:46:19 +0000 (08:46 +0100)]
r300: Fix after sampler view changes.

14 years agoi965: Fix after sampler view changes.
michal [Thu, 10 Dec 2009 07:05:45 +0000 (08:05 +0100)]
i965: Fix after sampler view changes.

14 years agoi915: Fix for sampler view changes.
michal [Thu, 10 Dec 2009 06:52:45 +0000 (07:52 +0100)]
i915: Fix for sampler view changes.

14 years agotrace: Fix after sampler view changes.
Michal Krol [Tue, 23 Feb 2010 18:18:27 +0000 (19:18 +0100)]
trace: Fix after sampler view changes.

14 years agosvga: Fix after sampler view changes.
Michal Krol [Tue, 23 Feb 2010 16:03:56 +0000 (17:03 +0100)]
svga: Fix after sampler view changes.

14 years agosoftpipe: Fix after sampler view changes.
Michal Krol [Tue, 23 Feb 2010 15:37:42 +0000 (16:37 +0100)]
softpipe: Fix after sampler view changes.

14 years agoidentity: Fix after sampler view changes.
Michal Krol [Tue, 23 Feb 2010 15:09:40 +0000 (16:09 +0100)]
identity: Fix after sampler view changes.

14 years agofailover: Fix after sampler view changes.
Michal Krol [Tue, 23 Feb 2010 15:09:10 +0000 (16:09 +0100)]
failover: Fix after sampler view changes.

14 years agogallium: WIP: Introduce sampler views.
Michal Krol [Fri, 19 Feb 2010 18:00:26 +0000 (19:00 +0100)]
gallium: WIP: Introduce sampler views.

14 years agotgsi: Make more exec opcodes look pretty.
Michal Krol [Thu, 18 Feb 2010 11:05:08 +0000 (12:05 +0100)]
tgsi: Make more exec opcodes look pretty.

14 years agotgsi: Change prototypes of micro opcodes to explicitly indicates number of args.
Michal Krol [Thu, 18 Feb 2010 10:56:14 +0000 (11:56 +0100)]
tgsi: Change prototypes of micro opcodes to explicitly indicates number of args.

14 years agotgsi: Rewrite exec implementations of NRM and NRM4.
Michal Krol [Thu, 18 Feb 2010 10:26:18 +0000 (11:26 +0100)]
tgsi: Rewrite exec implementations of NRM and NRM4.

14 years agoprogs/trivial: Update .gitignore.
Vinson Lee [Thu, 18 Feb 2010 09:24:20 +0000 (01:24 -0800)]
progs/trivial: Update .gitignore.

14 years agoprogs/redbook: Fix array out-of-bounds access.
Vinson Lee [Thu, 18 Feb 2010 09:17:26 +0000 (01:17 -0800)]
progs/redbook: Fix array out-of-bounds access.

14 years agost/mesa: always call FLUSH_CURRENT before st->pipe->flush()
Keith Whitwell [Thu, 18 Feb 2010 08:59:19 +0000 (08:59 +0000)]
st/mesa: always call FLUSH_CURRENT before st->pipe->flush()

Undoes part of commit f455ca6 which would permit pipe->flush() to be
called while the VBO module still had its buffers mapped.  Some
drivers care deeply about this.  Sorry for not spotting this earlier.

14 years agoprogs/rbug: Silence printf format warning.
Vinson Lee [Thu, 18 Feb 2010 07:22:51 +0000 (23:22 -0800)]
progs/rbug: Silence printf format warning.

14 years agoprogs/rbug: Add missing headers.
Vinson Lee [Thu, 18 Feb 2010 07:19:24 +0000 (23:19 -0800)]
progs/rbug: Add missing headers.

14 years agoutil: Fix typo of debug_dump_float_rgba_bmp.
Vinson Lee [Thu, 18 Feb 2010 07:10:13 +0000 (23:10 -0800)]
util: Fix typo of debug_dump_float_rgba_bmp.

14 years agoprogs/rbug: Use util_format_name().
Vinson Lee [Thu, 18 Feb 2010 06:55:16 +0000 (22:55 -0800)]
progs/rbug: Use util_format_name().

14 years agoprogs/rbug: Add missing header.
Vinson Lee [Thu, 18 Feb 2010 06:10:04 +0000 (22:10 -0800)]
progs/rbug: Add missing header.

14 years agoprogs/rbug: s/read/rbug_read/
Vinson Lee [Thu, 18 Feb 2010 05:50:07 +0000 (21:50 -0800)]
progs/rbug: s/read/rbug_read/

read conflicts with read in /usr/include/unistd.h.

14 years agosvga: Silence uninitialized variable warnings.
Vinson Lee [Thu, 18 Feb 2010 05:38:17 +0000 (21:38 -0800)]
svga: Silence uninitialized variable warnings.

14 years agor300g: add support for all missing non-FP sampler formats
Marek Olšák [Wed, 17 Feb 2010 23:18:23 +0000 (00:18 +0100)]
r300g: add support for all missing non-FP sampler formats

The idea is to directly parse the format description in
r300_translate_texformat and return ~0 if the format is unsupported.

14 years agowinsys/drm: Do not use --whole-archive in Makefile.egl.
Chia-I Wu [Thu, 18 Feb 2010 04:38:47 +0000 (12:38 +0800)]
winsys/drm: Do not use --whole-archive in Makefile.egl.

--whole-archive is not portable.  Have the drivers reference _eglMain as
a poor man's --whole-archive.

14 years agointel: Implement the DRI2 invalidate function properly
Kristian Høgsberg [Thu, 18 Feb 2010 02:17:55 +0000 (21:17 -0500)]
intel: Implement the DRI2 invalidate function properly

This uses a stamp mechanisms to mark the DRI drawable as invalid.
Instead of immediately updating the buffers we just bump the drawable
stamp and call out to DRI2GetBuffers "later".

"Later" used to be at LOCK_HARDWARE time, and this patch brings back
callouts at the points where we used to call LOCK_HARDWARE.  A new function,
intel_prepare_render(), is called where we used to call LOCK_HARDWARE,
and if the buffers are invalid, we call out to DRI2GetBuffers there.

This lets us invalidate buffers only when notified instead of on
every glViewport() call.  If the loader calls the DRI invalidate
entrypoint, we disable viewport triggered buffer invalidation.

Additionally, we can clean up the old viewport mechanism a bit,
since we can just invalidate the buffers and not worry about
reentrancy and whatnot.

14 years agodri/nouveau: Some multithreaded rendering fixes.
Francisco Jerez [Wed, 17 Feb 2010 17:56:42 +0000 (18:56 +0100)]
dri/nouveau: Some multithreaded rendering fixes.

14 years agost/dri2: Flush FRAME instead of RENDER_CACHE on buffer invalidation.
Francisco Jerez [Tue, 16 Feb 2010 17:17:11 +0000 (18:17 +0100)]
st/dri2: Flush FRAME instead of RENDER_CACHE on buffer invalidation.

14 years agost/mesa: Make the frontbuffer visible on st_flush(PIPE_FLUSH_FRAME).
Francisco Jerez [Tue, 16 Feb 2010 16:21:10 +0000 (17:21 +0100)]
st/mesa: Make the frontbuffer visible on st_flush(PIPE_FLUSH_FRAME).

So far the frontbuffer was only being flushed on st_glFlush and
st_glFinish, however, a co-state tracker may need to make sure that
any frontbuffer changes are already on its way to the actual front.

The dri2 state tracker will need this for event-driven GL applications
to resize properly (It could also be done calling "dri_flush_frontbuffer",
but that way we would flush unnecessarily in the double-buffered case).

Additionally this patch avoids flushing the mesa rendering cache if
PIPE_FLUSH_RENDER_CACHE wasn't specified.

14 years agoMerge commit '381d5e209815235911c4aab516037c868c8f695f'
Ian Romanick [Wed, 17 Feb 2010 19:40:09 +0000 (11:40 -0800)]
Merge commit '381d5e209815235911c4aab516037c868c8f695f'

This merges the patches from the series "[PATCH 00/14] More
client-side GLX house cleaning" that were posted to the mesa3d-dev
mailing list.  See
http://marc.info/?l=mesa3d-dev&m=126582985214612&w=2

Patches 01 through 04 eliminate a bunch of annoying warnings that I
get when building Mesa.

Patch 05 fixes an inconsistency between the implementation of
glXSwapIntervalMESA and the spec.  I chose to favor the code over the
spec in this case.  This also eliminated a warning.

Patches 06 through 12 clean up the way that context creation is
performed on the client.  When support for GLX_SGIX_fbconfig and the
related GLX 1.3 functions was added, I refactored a bunch
nuts-and-bolts of context creation to CreateContext.  The refactor was
a good idea, I just didn't do it right.

Patches 13 and 14 update glxgears_fbconfig to use GLX 1.3 interfaces.

14 years agoprogs/demos: update GL version test to accept GL 3.x
Brian Paul [Wed, 17 Feb 2010 16:02:33 +0000 (09:02 -0700)]
progs/demos: update GL version test to accept GL 3.x

14 years agoglsl/apps: print usage info if insufficient args
Brian Paul [Wed, 17 Feb 2010 15:59:02 +0000 (08:59 -0700)]
glsl/apps: print usage info if insufficient args

14 years agost/mesa: replace conditional with assertion
Brian Paul [Wed, 17 Feb 2010 15:27:53 +0000 (08:27 -0700)]
st/mesa: replace conditional with assertion

Core Mesa will not call ctx->Driver.CheckQuery() if the Ready flag
is already set.

14 years agoprogs/openvg: Add .gitignore.
Chia-I Wu [Wed, 17 Feb 2010 14:30:29 +0000 (22:30 +0800)]
progs/openvg: Add .gitignore.

Add all OpenVG demos to .gitignore.

14 years agoprogs/es1: Update .gitignore.
Chia-I Wu [Wed, 17 Feb 2010 14:29:43 +0000 (22:29 +0800)]
progs/es1: Update .gitignore.

Add xegl/bindtex to .gitignore.

14 years agollvmpipe: use ffs technique for full tiles also
Keith Whitwell [Wed, 17 Feb 2010 11:53:31 +0000 (11:53 +0000)]
llvmpipe: use ffs technique for full tiles also

Need to compute two masks here for full and partial 16x16 blocks.
Gives a further good improvement for isosurf particularly:

isosurf  97 -> 108
gears   597 -> 611

14 years agodocs: Update TODOs of egl.html.
Chia-I Wu [Wed, 17 Feb 2010 11:52:29 +0000 (19:52 +0800)]
docs: Update TODOs of egl.html.

Thread-safety is no longer a TODO item.  There are surely bugs to be
fixed though.

14 years agoegl: Revisit global data locking.
Chia-I Wu [Wed, 17 Feb 2010 11:03:30 +0000 (19:03 +0800)]
egl: Revisit global data locking.

Lock the global mutex in _eglPreloadDrivers and _eglAllocScreenHandle.
Add comments to why certain pathes do not need locking.

14 years agoegl: Always lock a display before using it.
Chia-I Wu [Wed, 17 Feb 2010 09:30:44 +0000 (17:30 +0800)]
egl: Always lock a display before using it.

This gives a simple access control to the display.  It is potentially
slow, but a finer grained mutex can always be used in the future.  The
benefit of this simple approach is that drivers need not to worry about
thread-safety.

14 years agoegl: Make eglGetDisplay atomic.
Chia-I Wu [Wed, 17 Feb 2010 10:39:27 +0000 (18:39 +0800)]
egl: Make eglGetDisplay atomic.

Merge _eglNewDisplay and _eglLinkDisplay into _eglFindDisplay.  Remove
unused _eglUnlinkDisplay.

14 years agoegl: Add a mutex to _EGLDisplay.
Chia-I Wu [Wed, 17 Feb 2010 09:29:52 +0000 (17:29 +0800)]
egl: Add a mutex to _EGLDisplay.

A display may be shared by multiple threads.  Add a mutex for access
control.

14 years agoegl: eglGetError should return the status of the last call.
Chia-I Wu [Wed, 17 Feb 2010 08:05:27 +0000 (16:05 +0800)]
egl: eglGetError should return the status of the last call.

Use macros to record the status of the function call before returning.
This is the only way that eglGetError can return the status of the most
recent function call.

14 years agoegl: Always record error code.
Chia-I Wu [Wed, 17 Feb 2010 08:42:30 +0000 (16:42 +0800)]
egl: Always record error code.

The error code denotes the success or failure of the most recent
function call.  A call to _eglError should always update the error code.

14 years agoegl: Use new error checking macros.
Chia-I Wu [Wed, 17 Feb 2010 07:43:47 +0000 (15:43 +0800)]
egl: Use new error checking macros.

Replace all uses of _EGL_DECLARE_* and _eglCheck* by _EGL_CHECK_*.

14 years agoegl: Add new error checking macros.
Chia-I Wu [Wed, 17 Feb 2010 07:22:03 +0000 (15:22 +0800)]
egl: Add new error checking macros.

Add _EGL_CHECK_* which will replace _EGL_DECLARE_* for error checking.
Move _eglCheck* earlier in the file so that the macros and the functions
are grouped together.

14 years agollvmpipe: rework do_block_16 to use bitmasks and ffs
Keith Whitwell [Wed, 17 Feb 2010 11:07:45 +0000 (11:07 +0000)]
llvmpipe: rework do_block_16 to use bitmasks and ffs

Some nice speedups:
   gears:  547 -> 597
   isosurf: 83 -> 98

Others like gloss unchanged.  Could do further work in this direction.

14 years agoglsl/pp: Remove sl_pp_get_extension_state().
Michal Krol [Wed, 17 Feb 2010 10:18:03 +0000 (11:18 +0100)]
glsl/pp: Remove sl_pp_get_extension_state().

Parse extension tokens to track current state of extension enables.

14 years agoglsl/cl: Parse layout qualifiers only when an appropriate extension enabled.
Michal Krol [Wed, 17 Feb 2010 10:07:17 +0000 (11:07 +0100)]
glsl/cl: Parse layout qualifiers only when an appropriate extension enabled.

14 years agoglsl/cl: Properly emit layout qualifier list.
Michal Krol [Wed, 17 Feb 2010 08:54:59 +0000 (09:54 +0100)]
glsl/cl: Properly emit layout qualifier list.

14 years agoglsl: Silence unused value warning.
Vinson Lee [Wed, 17 Feb 2010 10:10:49 +0000 (02:10 -0800)]
glsl: Silence unused value warning.

14 years agoprogs/redbook: Fix memory leaks on error paths.
Vinson Lee [Wed, 17 Feb 2010 09:57:14 +0000 (01:57 -0800)]
progs/redbook: Fix memory leaks on error paths.

14 years agonouveau: fix legacy dri driver build
Johannes Obermayr [Wed, 17 Feb 2010 06:16:50 +0000 (16:16 +1000)]
nouveau: fix legacy dri driver build

14 years agosl/pp: re-do extension testing code
Brian Paul [Tue, 16 Feb 2010 17:42:05 +0000 (10:42 -0700)]
sl/pp: re-do extension testing code

The #extension directive should not effect which extension preprocessor
symbols are defined/undefined; only whether/how the compiler accepts
language features defined by the extension.

14 years agonv40: Fix incorrect so_new() numbering.
Francisco Jerez [Tue, 16 Feb 2010 17:37:43 +0000 (18:37 +0100)]
nv40: Fix incorrect so_new() numbering.

14 years agonv40: Implement PIPE_CAP_MAX_COMBINED_SAMPLERS.
Francisco Jerez [Tue, 16 Feb 2010 17:36:47 +0000 (18:36 +0100)]
nv40: Implement PIPE_CAP_MAX_COMBINED_SAMPLERS.

14 years agoglx: Fix a couple of warnings
Kristian Høgsberg [Tue, 16 Feb 2010 15:37:48 +0000 (10:37 -0500)]
glx: Fix a couple of warnings

14 years agoglx: Only register wire handlers for the events the server supports
Kristian Høgsberg [Tue, 16 Feb 2010 15:27:57 +0000 (10:27 -0500)]
glx: Only register wire handlers for the events the server supports

14 years agost/dri2: Use event-driven buffer validation.
Francisco Jerez [Mon, 8 Feb 2010 18:27:58 +0000 (19:27 +0100)]
st/dri2: Use event-driven buffer validation.

14 years agodri/nouveau: Use event driven buffer validation.
Francisco Jerez [Mon, 8 Feb 2010 18:27:57 +0000 (19:27 +0100)]
dri/nouveau: Use event driven buffer validation.

14 years agodri2: Event driven buffer validation.
Francisco Jerez [Mon, 8 Feb 2010 18:27:56 +0000 (19:27 +0100)]
dri2: Event driven buffer validation.

When a buffer invalidation event is received from the X server, the
"invalidate" hook of the DRI2 flush extension is executed: A generic
implementation (dri2InvalidateDrawable) is provided that just bumps
the "pStamp" sequence number in __DRIdrawableRec.

For old servers not supporting buffer invalidation events, the
invalidate hook will be called before flushing the fake front/back
buffer (that's typically once per frame -- not a lot worse than the
situation we were in before).

No effort has been made on preserving backwards compatibility with
version 2 of the flush extension, but I think it's acceptable because
AFAIK no released stack is making use of it.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
14 years agodri2: Allocate cliprect as part of the __DRIdrawableRec
Kristian Høgsberg [Mon, 15 Feb 2010 20:15:05 +0000 (15:15 -0500)]
dri2: Allocate cliprect as part of the __DRIdrawableRec

14 years agoglx: Move GetGLXDRIDrawable() prototype to glxclient.h
Kristian Høgsberg [Mon, 15 Feb 2010 16:12:28 +0000 (11:12 -0500)]
glx: Move GetGLXDRIDrawable() prototype to glxclient.h

14 years agoconfigure.ac: Lower require dri2proto version to 2.1
Kristian Høgsberg [Mon, 15 Feb 2010 15:44:05 +0000 (10:44 -0500)]
configure.ac: Lower require dri2proto version to 2.1

Additions after 2.1 are implemented in a conditional way and will be
supported if available.

14 years agomesa: Lock mutex around _mesa_HashLookup linked list chase.
Brian Paul [Tue, 16 Feb 2010 15:21:38 +0000 (08:21 -0700)]
mesa: Lock mutex around _mesa_HashLookup linked list chase.

Remove const qualifier from _mesa_HashLookup() table parameter to
avoid LOCK/UNLOCK warnings in the function body.

Signed-off-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 3094adb3caeb90124359db2356df3bf8ee94800a)

14 years agomesa: Test for failed malloc in _mesa_HashInsert.
Brian Paul [Tue, 16 Feb 2010 15:21:28 +0000 (08:21 -0700)]
mesa: Test for failed malloc in _mesa_HashInsert.

Signed-off-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 7c7247ddbf6e3f7f93e44c1cb52490044f1a2215)

14 years agoRevert "progs/redbook: Temporarily disable the demos that extensions not part of...
José Fonseca [Tue, 16 Feb 2010 11:23:18 +0000 (11:23 +0000)]
Revert "progs/redbook: Temporarily disable the demos that extensions not part of windows to fix build."

This reverts commit 1587eff1b6d6ab74c302ca2ccb767d917ce3b1dd.

14 years agoglsl/pp: Do not try to enable extension `all'.
Michal Krol [Tue, 16 Feb 2010 09:04:58 +0000 (10:04 +0100)]
glsl/pp: Do not try to enable extension `all'.

14 years agonv50: use hw idx buffers where we can
Ben Skeggs [Tue, 16 Feb 2010 05:43:51 +0000 (15:43 +1000)]
nv50: use hw idx buffers where we can

14 years agoprogs/redbook: use glew
Brian Paul [Tue, 16 Feb 2010 01:04:00 +0000 (18:04 -0700)]
progs/redbook: use glew

14 years agonouveau: fix for latest libdrm
Ben Skeggs [Mon, 15 Feb 2010 06:45:39 +0000 (16:45 +1000)]
nouveau: fix for latest libdrm

14 years agowgl: Be lenient when sharing contexts.
José Fonseca [Mon, 15 Feb 2010 19:34:38 +0000 (19:34 +0000)]
wgl: Be lenient when sharing contexts.

My first reading of MS docs was wrong. It says:

  All rendering contexts of a shared display list must use an identical
  pixel format. Otherwise the results depend on the implementation of
  OpenGL used.

That is, it is OK to share contexts with different pixel formats.

Adobe Premiere Pro tries to do that: share lists between a rgbx8 and a
rgba8 pixel format.

14 years agoprogs/redbook: Temporarily disable the demos that extensions not part of windows...
José Fonseca [Mon, 15 Feb 2010 21:47:20 +0000 (21:47 +0000)]
progs/redbook: Temporarily disable the demos that extensions not part of windows to fix build.

14 years agoscons: A less magic way of not building progs by default.
José Fonseca [Mon, 15 Feb 2010 20:48:24 +0000 (20:48 +0000)]
scons: A less magic way of not building progs by default.

The problem with the old way is that passing 'progs/subdir' as argument
would fail.

14 years agoglsl/pp: Fix handling of if/elif/else cases.
Michal Krol [Mon, 15 Feb 2010 20:33:22 +0000 (21:33 +0100)]
glsl/pp: Fix handling of if/elif/else cases.

Once if/elif evalutes to true, all subsequent conditions are always false.

14 years agoprogs/redbook: test image for new redbook tests
Brian Paul [Mon, 15 Feb 2010 16:55:44 +0000 (09:55 -0700)]
progs/redbook: test image for new redbook tests

14 years agoprogs/redbook: add additional tests for GL 1.4
Brian Paul [Mon, 15 Feb 2010 16:55:01 +0000 (09:55 -0700)]
progs/redbook: add additional tests for GL 1.4

14 years agodocs: document glMultiDrawElements() fix
Brian Paul [Mon, 15 Feb 2010 15:57:34 +0000 (08:57 -0700)]
docs: document glMultiDrawElements() fix

(cherry picked from commit ab6bcef99a53217db752659ace105ddfd9b25ebb)

14 years agovbo: fix broken glMultiDrawElements()
Brian Paul [Mon, 15 Feb 2010 15:57:17 +0000 (08:57 -0700)]
vbo: fix broken glMultiDrawElements()

Seems to be a regression from commit 60b08eb1fdf287d28ec66b9282513ab35a61aee0.

(cherry picked from commit c5a4cfb03ff17955c049f16ac805f5837ea4b633)

14 years agoglu/sgi: Add assert to check for null pointer dereference.
Vinson Lee [Mon, 15 Feb 2010 10:14:02 +0000 (02:14 -0800)]
glu/sgi: Add assert to check for null pointer dereference.

14 years agomesa: Remove pointless comparison of unsigned integer with a negative constant.
Vinson Lee [Mon, 15 Feb 2010 10:01:20 +0000 (02:01 -0800)]
mesa: Remove pointless comparison of unsigned integer with a negative constant.

14 years agoglsl/pp: Add asserts to check for null pointer deferences.
Vinson Lee [Mon, 15 Feb 2010 08:30:31 +0000 (00:30 -0800)]
glsl/pp: Add asserts to check for null pointer deferences.

14 years agodraw: Add assert to check input of memcpy.
Vinson Lee [Mon, 15 Feb 2010 06:58:26 +0000 (22:58 -0800)]
draw: Add assert to check input of memcpy.

14 years agoglu/sgi: Move initialization of members to top of Curve constructor.
Vinson Lee [Mon, 15 Feb 2010 06:26:30 +0000 (22:26 -0800)]
glu/sgi: Move initialization of members to top of Curve constructor.

This is a modification of commit 53d448657bd300ab68b2869b2fba76a627699baf.

The members cpts and spts are possibly used as arguments later in
the constructor.

14 years agoglu/sgi: Initialize members of class Curvelist.
Vinson Lee [Mon, 15 Feb 2010 06:18:41 +0000 (22:18 -0800)]
glu/sgi: Initialize members of class Curvelist.

14 years agoglu/sgi: Initialize members of class Curve.
Vinson Lee [Mon, 15 Feb 2010 06:04:59 +0000 (22:04 -0800)]
glu/sgi: Initialize members of class Curve.

14 years agoglu/sgi: Initialize member of class Pool.
Vinson Lee [Mon, 15 Feb 2010 05:45:01 +0000 (21:45 -0800)]
glu/sgi: Initialize member of class Pool.

14 years agoglx: Silence uninitialized variable warning.
Vinson Lee [Mon, 15 Feb 2010 05:02:18 +0000 (21:02 -0800)]
glx: Silence uninitialized variable warning.

14 years agost/mesa: minor assorted clean-ups
Brian Paul [Mon, 15 Feb 2010 04:54:17 +0000 (21:54 -0700)]
st/mesa: minor assorted clean-ups