mesa.git
14 years agomesa: move _mesa_debug() call earlier in _mesa_Scissor
Brian Paul [Mon, 25 Jan 2010 00:54:44 +0000 (17:54 -0700)]
mesa: move _mesa_debug() call earlier in _mesa_Scissor

Part of a patch from Xavier Chantry <chantry.xavier@gmail.com>

14 years agost/mesa: fix unsigned/signed breakage in scissor
Xavier Chantry [Sat, 23 Jan 2010 16:27:21 +0000 (17:27 +0100)]
st/mesa: fix unsigned/signed breakage in scissor

commit 53174afeeb introduced a portability change that converted GLint x,y
to GLuint. That breaks when x and y are negative, which seems to be allowed,
and which at least one game uses : teeworlds.

Rather than simply reverting the change, it seems possible to convert the
16bit unsigned to GLint so that comparisons are made between signed integers
instead.  This hopefully does not break anything while keeping MSVC happy.

Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agor200: Silence fprintf format warning.
Vinson Lee [Sun, 24 Jan 2010 08:17:00 +0000 (00:17 -0800)]
r200: Silence fprintf format warning.

14 years agox86: Do not build read_rgba_span_x86.S on Mac OS X.
Vinson Lee [Sun, 24 Jan 2010 07:18:33 +0000 (23:18 -0800)]
x86: Do not build read_rgba_span_x86.S on Mac OS X.

read_rgba_span_x86.S uses the pseudo-ops .hidden and .type which are
not recognized on Mac OS X.

14 years agox86: Do not use .hidden pseudo-op on Mac OS X.
Vinson Lee [Sun, 24 Jan 2010 07:12:34 +0000 (23:12 -0800)]
x86: Do not use .hidden pseudo-op on Mac OS X.

The .hidden directive is an unknown pseudo-op on Mac OS X.

14 years agoglapi: Do not use .type pseudo-op on Mac OS X.
Vinson Lee [Sun, 24 Jan 2010 06:59:31 +0000 (22:59 -0800)]
glapi: Do not use .type pseudo-op on Mac OS X.

The .type directive is an unknown pseudo-op on Mac OS X.

14 years agoscons: Do not use ld options start-group and end-group on Darwin.
Vinson Lee [Sun, 24 Jan 2010 05:43:26 +0000 (21:43 -0800)]
scons: Do not use ld options start-group and end-group on Darwin.

Mac OS X ld does not support these options.

14 years agoscons: Define _DARWIN_C_SOURCE on Darwin builds.
Vinson Lee [Sun, 24 Jan 2010 05:05:58 +0000 (21:05 -0800)]
scons: Define _DARWIN_C_SOURCE on Darwin builds.

14 years agoprogs/demos: Remove unnecessary header from shadowtex.c.
Vinson Lee [Sun, 24 Jan 2010 04:56:49 +0000 (20:56 -0800)]
progs/demos: Remove unnecessary header from shadowtex.c.

14 years agor300: Remove unnecessary headers.
Vinson Lee [Sun, 24 Jan 2010 04:43:27 +0000 (20:43 -0800)]
r300: Remove unnecessary headers.

14 years agointel: Remove unnecessary headers.
Vinson Lee [Sat, 23 Jan 2010 22:33:29 +0000 (14:33 -0800)]
intel: Remove unnecessary headers.

14 years agoradeon: Remove unused variable.
Vinson Lee [Sat, 23 Jan 2010 10:14:56 +0000 (02:14 -0800)]
radeon: Remove unused variable.

14 years agotdfx: Remove unnecessary headers.
Vinson Lee [Sat, 23 Jan 2010 09:54:53 +0000 (01:54 -0800)]
tdfx: Remove unnecessary headers.

14 years agosis: Remove unnecessary headers.
Vinson Lee [Sat, 23 Jan 2010 09:40:44 +0000 (01:40 -0800)]
sis: Remove unnecessary headers.

14 years agosavage: Remove unnecessary headers.
Vinson Lee [Sat, 23 Jan 2010 08:38:14 +0000 (00:38 -0800)]
savage: Remove unnecessary headers.

14 years agomga: Remove unnecessary headers.
Vinson Lee [Sat, 23 Jan 2010 08:19:29 +0000 (00:19 -0800)]
mga: Remove unnecessary headers.

14 years agoi965: Remove unnecessary headers.
Vinson Lee [Sat, 23 Jan 2010 07:53:39 +0000 (23:53 -0800)]
i965: Remove unnecessary headers.

14 years agoi915: Remove unnecessary headers.
Vinson Lee [Sat, 23 Jan 2010 07:22:16 +0000 (23:22 -0800)]
i915: Remove unnecessary headers.

14 years agogallium/util: fix incorrect shift in a4r4g4b4_put_tile_rgba()
Brian Paul [Sat, 23 Jan 2010 00:17:01 +0000 (17:17 -0700)]
gallium/util: fix incorrect shift in a4r4g4b4_put_tile_rgba()

Fixes fd.o bug 23313.

14 years agomesa: re-implement _mesa_ProgramEnvParameter4fvARB() with memcpy()
Brian Paul [Fri, 22 Jan 2010 22:41:08 +0000 (15:41 -0700)]
mesa: re-implement _mesa_ProgramEnvParameter4fvARB() with memcpy()

This is faster and ensures that NaN floats get stored properly.
Before, NaN values (which might be used with UP2H, UP2US, UP4B and
UP4UB) weren't getting stored properly with gcc -O3.

This is the second part of the fix for the piglit fp-unpack-01 failure
(bug 25973).

14 years agomesa: use new fetch_vector1ui() function for 'unpack' GPU instructions
Brian Paul [Fri, 22 Jan 2010 22:36:28 +0000 (15:36 -0700)]
mesa: use new fetch_vector1ui() function for 'unpack' GPU instructions

The UP2H, UP2US, UP4B and UP4UB instructions interpret the float
registers as integers.  With gcc -O3 some bits were getting mixed up
somewhere.  This is part of the fix for the piglit fp-unpack-01 test
failure (bug 25973).

14 years agoxlib/softpipe: more buffer free fixes
Brian Paul [Fri, 22 Jan 2010 20:07:04 +0000 (13:07 -0700)]
xlib/softpipe: more buffer free fixes

The previous memory leak fix didn't always work properly.
Now check the xm_buffer::smh field (now documented!) to
see if the buffer points to shared memory.

14 years agogallium/draw: apply DRAW_PIPE_FLAG_MASK to all vertex elements
Brian Paul [Fri, 22 Jan 2010 18:45:40 +0000 (11:45 -0700)]
gallium/draw: apply DRAW_PIPE_FLAG_MASK to all vertex elements

Depending on first/last provoking vertex either the first or last
element/index may have the extra DRAW_PIPE_x flags.  Mask off those
bits for all vertex elements to be safe (esp. for the quad case).
This may be overly cautious, but it's a cheap operation.

Fixes a segfault caused by large/bogus vertex indexes otherwise.

14 years agogallium/draw: added comments, whitespace fixes
Brian Paul [Fri, 22 Jan 2010 18:39:19 +0000 (11:39 -0700)]
gallium/draw: added comments, whitespace fixes

14 years agoFix PowerPC related typo in spantmp2.h
Ruediger Oertel [Fri, 22 Jan 2010 14:53:27 +0000 (06:53 -0800)]
Fix PowerPC related typo in spantmp2.h

Signed-off-by: Matthias Hopf <mhopf@suse.de>
Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agovmware/core: Update for pipebuffer changes.
José Fonseca [Fri, 22 Jan 2010 05:18:25 +0000 (21:18 -0800)]
vmware/core: Update for pipebuffer changes.

In particular, delay patching GMR relocations until the buffers are
validated, since the buffers relative offset can only be established then.

14 years agost/mesa: Remove unnecessary header from st_cb_viewport.c.
Vinson Lee [Fri, 22 Jan 2010 07:41:57 +0000 (23:41 -0800)]
st/mesa: Remove unnecessary header from st_cb_viewport.c.

14 years agoprogs/trivial: Remove unnecessary header from tri-fbo-tex-mip.c.
Vinson Lee [Fri, 22 Jan 2010 07:24:40 +0000 (23:24 -0800)]
progs/trivial: Remove unnecessary header from tri-fbo-tex-mip.c.

14 years agoi915g: Remove unnecessary header.
Vinson Lee [Fri, 22 Jan 2010 07:09:06 +0000 (23:09 -0800)]
i915g: Remove unnecessary header.

14 years agopipebuffer: Remove unnecessary header.
Vinson Lee [Fri, 22 Jan 2010 07:07:29 +0000 (23:07 -0800)]
pipebuffer: Remove unnecessary header.

14 years agodraw: Remove unnecessary headers.
Vinson Lee [Fri, 22 Jan 2010 06:57:12 +0000 (22:57 -0800)]
draw: Remove unnecessary headers.

14 years agosvga: Remove unused variable.
Vinson Lee [Fri, 22 Jan 2010 01:24:07 +0000 (17:24 -0800)]
svga: Remove unused variable.

14 years agovmware/core: Flush preemptively the FIFO commands to keep the GMR working set within...
José Fonseca [Thu, 21 Jan 2010 23:51:37 +0000 (15:51 -0800)]
vmware/core: Flush preemptively the FIFO commands to keep the GMR working set within reasonable bounds.

14 years agovmware/core: Put GMR pool size in a define.
José Fonseca [Thu, 21 Jan 2010 23:47:52 +0000 (15:47 -0800)]
vmware/core: Put GMR pool size in a define.

14 years agovmw/wgl: Update for pipebuffer changes.
José Fonseca [Thu, 21 Jan 2010 23:27:26 +0000 (15:27 -0800)]
vmw/wgl: Update for pipebuffer changes.

This is a minimum change to keep things building and running minimally -- it
might cause applications to fail to allocate buffers due to out of
GMR memory.

A proper update will be commited later.

14 years agosvga: Remove duplicate code.
José Fonseca [Thu, 21 Jan 2010 20:12:47 +0000 (12:12 -0800)]
svga: Remove duplicate code.

14 years agosvga: Remove unused code.
José Fonseca [Thu, 21 Jan 2010 22:24:53 +0000 (14:24 -0800)]
svga: Remove unused code.

14 years agosvga: Don't swap buffers to system memory -- winsys' responsibility.
José Fonseca [Wed, 20 Jan 2010 11:45:17 +0000 (03:45 -0800)]
svga: Don't swap buffers to system memory -- winsys' responsibility.

14 years agopipebuffer: Release the lock during map wait. Cleanups.
José Fonseca [Thu, 21 Jan 2010 20:43:40 +0000 (12:43 -0800)]
pipebuffer: Release the lock during map wait. Cleanups.

14 years agopipebuffer: Swap buffers out to system memory when running out of memory.
José Fonseca [Wed, 20 Jan 2010 11:43:53 +0000 (03:43 -0800)]
pipebuffer: Swap buffers out to system memory when running out of memory.

14 years agosvga: Avoid synchronization issues when doing SW TNL.
José Fonseca [Thu, 21 Jan 2010 20:13:27 +0000 (12:13 -0800)]
svga: Avoid synchronization issues when doing SW TNL.

14 years agomesa: Use pipe_buffer_write_nooverlap where appropriate.
José Fonseca [Thu, 21 Jan 2010 17:42:05 +0000 (09:42 -0800)]
mesa: Use pipe_buffer_write_nooverlap where appropriate.

14 years agoutil: Set DISCARD & UNSYNCHRONIZED when uploading vertices sequentially.
José Fonseca [Thu, 21 Jan 2010 17:38:47 +0000 (09:38 -0800)]
util: Set DISCARD & UNSYNCHRONIZED when uploading vertices sequentially.

14 years agoutil: Use pipe_buffer_write_nooverlap in blits / mipmap generation.
José Fonseca [Thu, 21 Jan 2010 17:32:17 +0000 (09:32 -0800)]
util: Use pipe_buffer_write_nooverlap in blits / mipmap generation.

14 years agogallium: New inline to write buffers which avoids synchronization.
José Fonseca [Thu, 21 Jan 2010 17:30:22 +0000 (09:30 -0800)]
gallium: New inline to write buffers which avoids synchronization.

14 years agogallium: Set PIPE_BUFFER_USAGE_DISCARD flag in pipe_buffer_write.
José Fonseca [Thu, 21 Jan 2010 17:19:25 +0000 (09:19 -0800)]
gallium: Set PIPE_BUFFER_USAGE_DISCARD flag in pipe_buffer_write.

14 years agogallium: Remove temporary hack for the absence of a discard flag.
José Fonseca [Thu, 21 Jan 2010 17:13:15 +0000 (09:13 -0800)]
gallium: Remove temporary hack for the absence of a discard flag.

PIPE_BUFFER_USAGE_DISCARD flag now exists.

14 years agosvga: Follow buffer usage semantics properly.
José Fonseca [Thu, 21 Jan 2010 20:12:33 +0000 (12:12 -0800)]
svga: Follow buffer usage semantics properly.

It's necessary to download buffers from the host always, except if the
buffer is undefined, because:
- just PIPE_BUFFER_USAGE_CPU_WRITE doesn't guarantee all data is written
  -- old contents may still pierce through
- PIPE_BUFFER_USAGE_DISCARD refers to a range, not the whole buffer, so
  unless we track which parts have been modified and not we still need
  to download the data.

14 years agost/xorg: Remove unnecessary headers.
Vinson Lee [Thu, 21 Jan 2010 23:05:21 +0000 (15:05 -0800)]
st/xorg: Remove unnecessary headers.

14 years agor200: fix CS section size mismatch
Roland Scheidegger [Thu, 21 Jan 2010 22:30:16 +0000 (17:30 -0500)]
r200: fix CS section size mismatch

Partial fix for fdo bug 25544

The tex handling will still need CS drm changes,
see bug 25544 for more.

14 years agollvmpipe: Remove unnecessary headers.
Vinson Lee [Thu, 21 Jan 2010 22:31:15 +0000 (14:31 -0800)]
llvmpipe: Remove unnecessary headers.

14 years agosvga: Remove unnecessary headers.
Vinson Lee [Thu, 21 Jan 2010 20:12:11 +0000 (12:12 -0800)]
svga: Remove unnecessary headers.

14 years agomach64: Remove unnecessary headers.
Vinson Lee [Thu, 21 Jan 2010 06:52:49 +0000 (22:52 -0800)]
mach64: Remove unnecessary headers.

14 years agoi810: Remove unnecessary headers.
Vinson Lee [Thu, 21 Jan 2010 06:02:51 +0000 (22:02 -0800)]
i810: Remove unnecessary headers.

14 years agoffb: Remove unnecessary headers.
Vinson Lee [Thu, 21 Jan 2010 00:27:44 +0000 (16:27 -0800)]
ffb: Remove unnecessary headers.

14 years agoxlib/softpipe: fix buffer memory leak
Brian Paul [Wed, 20 Jan 2010 17:32:13 +0000 (10:32 -0700)]
xlib/softpipe: fix buffer memory leak

Fixes leak caused by window resize.

14 years agost/mesa: fix format logic in compatible_src_dst_formats()
Brian Paul [Wed, 20 Jan 2010 15:03:46 +0000 (08:03 -0700)]
st/mesa: fix format logic in compatible_src_dst_formats()

We need to consider the user-requested formats, not the actual device-
chosen formats.  See code comments for more details.

14 years agodocs: updated Mesa mailing list info
Brian Paul [Tue, 19 Jan 2010 23:42:43 +0000 (16:42 -0700)]
docs: updated Mesa mailing list info

14 years agost/xorg: Fic bug and close drm_api at proper place
Jakob Bornecrantz [Wed, 20 Jan 2010 14:53:38 +0000 (14:53 +0000)]
st/xorg: Fic bug and close drm_api at proper place

14 years agosoftpipe: Remove unnecessary headers.
Vinson Lee [Wed, 20 Jan 2010 08:08:54 +0000 (00:08 -0800)]
softpipe: Remove unnecessary headers.

14 years agoi915g: Remove unnecessary headers.
Vinson Lee [Wed, 20 Jan 2010 06:47:03 +0000 (22:47 -0800)]
i915g: Remove unnecessary headers.

14 years agosvga: Do a more propper creation of textures from handles
Jakob Bornecrantz [Tue, 19 Jan 2010 21:26:01 +0000 (22:26 +0100)]
svga: Do a more propper creation of textures from handles

14 years agost/xorg: Don't leak BusID buffer
Jakob Bornecrantz [Tue, 19 Jan 2010 22:29:56 +0000 (23:29 +0100)]
st/xorg: Don't leak BusID buffer

14 years agost/xorg: Pass kernel driver name to drmOpen
Jakob Bornecrantz [Tue, 19 Jan 2010 17:14:19 +0000 (17:14 +0000)]
st/xorg: Pass kernel driver name to drmOpen

14 years agost/drm: Expose kernel driver name
Jakob Bornecrantz [Tue, 19 Jan 2010 16:46:28 +0000 (16:46 +0000)]
st/drm: Expose kernel driver name

Based on patch by Chia-I Wu <olvaffe@gmail.com>

Expose the name of the kernel driver as accepted by drmOpenByName.

14 years agost/dri: update dri2 drawables when viewport is changed
Ben Skeggs [Mon, 11 Jan 2010 01:41:47 +0000 (11:41 +1000)]
st/dri: update dri2 drawables when viewport is changed

Fixes gnome-shell on nouveau, as well as window resize with various
other applications.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
14 years agoglx: Set GL context to null in __glXSetCurrentContextNull
Luca Barbieri [Sun, 17 Jan 2010 07:19:19 +0000 (23:19 -0800)]
glx: Set GL context to null in __glXSetCurrentContextNull

__glXSetCurrentContextNull currently does not set the GL context to null
in the direct rendering case.

This can result in a segfault trying to flush an invalid old context
in glXMakeCurrent.

This fixes a crash starting the Unigine demos (they still don't work due
to missing extensions though).

Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agowgl: Check for PIPE_TEXTURE_USAGE_DISPLAY_TARGET support in exported color pixel...
José Fonseca [Tue, 19 Jan 2010 14:13:44 +0000 (06:13 -0800)]
wgl: Check for PIPE_TEXTURE_USAGE_DISPLAY_TARGET support in exported color pixel formats.

Since all formats we export have PFD_DRAW_TO_WINDOW flag.

14 years agowgl: Don't export pure-stencil pixel formats.
José Fonseca [Tue, 19 Jan 2010 14:12:10 +0000 (06:12 -0800)]
wgl: Don't export pure-stencil pixel formats.

They cause DCT's conform to always fail.

14 years agosoftpipe: Fix vertex buffer memory leak.
José Fonseca [Tue, 19 Jan 2010 13:39:18 +0000 (05:39 -0800)]
softpipe: Fix vertex buffer memory leak.

14 years agounichrome: Remove unnecessary headers.
Vinson Lee [Tue, 19 Jan 2010 08:45:16 +0000 (00:45 -0800)]
unichrome: Remove unnecessary headers.

14 years agomesa: Remove unnecessary header from attrib.c.
Vinson Lee [Tue, 19 Jan 2010 06:50:08 +0000 (22:50 -0800)]
mesa: Remove unnecessary header from attrib.c.

14 years agomesa: Remove unnecessary header from blend.c.
Vinson Lee [Tue, 19 Jan 2010 06:45:23 +0000 (22:45 -0800)]
mesa: Remove unnecessary header from blend.c.

14 years agomesa: Remove unnecessary headers from buffers.c.
Vinson Lee [Tue, 19 Jan 2010 06:17:03 +0000 (22:17 -0800)]
mesa: Remove unnecessary headers from buffers.c.

14 years agomesa: Remove unnecessary header from convolve.c.
Vinson Lee [Tue, 19 Jan 2010 05:56:58 +0000 (21:56 -0800)]
mesa: Remove unnecessary header from convolve.c.

14 years agomesa: Fix typo of 'unknown' in debug.c.
Vinson Lee [Tue, 19 Jan 2010 05:41:31 +0000 (21:41 -0800)]
mesa: Fix typo of 'unknown' in debug.c.

14 years agomesa: Remove unnecessary headers from debug.c.
Vinson Lee [Tue, 19 Jan 2010 05:37:18 +0000 (21:37 -0800)]
mesa: Remove unnecessary headers from debug.c.

14 years agomesa: Remove unnecessary header from depthstencil.c.
Vinson Lee [Tue, 19 Jan 2010 05:34:25 +0000 (21:34 -0800)]
mesa: Remove unnecessary header from depthstencil.c.

14 years agomesa: Remove unnecessary headers from dlist.c.
Vinson Lee [Tue, 19 Jan 2010 05:31:02 +0000 (21:31 -0800)]
mesa: Remove unnecessary headers from dlist.c.

14 years agomesa: Remove unnecessary header from drawpix.c.
Vinson Lee [Tue, 19 Jan 2010 05:22:47 +0000 (21:22 -0800)]
mesa: Remove unnecessary header from drawpix.c.

14 years agomesa: Remove unnecessary header from enable.c.
Vinson Lee [Tue, 19 Jan 2010 05:17:45 +0000 (21:17 -0800)]
mesa: Remove unnecessary header from enable.c.

14 years agomesa: Remove unnecessary headers from fbobject.c.
Vinson Lee [Tue, 19 Jan 2010 05:14:04 +0000 (21:14 -0800)]
mesa: Remove unnecessary headers from fbobject.c.

14 years agomesa: Remove unnecessary header from formats.c.
Vinson Lee [Tue, 19 Jan 2010 05:07:53 +0000 (21:07 -0800)]
mesa: Remove unnecessary header from formats.c.

14 years agomesa: Remove unnecessary header from image.c.
Vinson Lee [Tue, 19 Jan 2010 05:02:19 +0000 (21:02 -0800)]
mesa: Remove unnecessary header from image.c.

14 years agosoftpipe: Skip depth testing for PIPE_S8_UNORM.
José Fonseca [Tue, 19 Jan 2010 03:33:13 +0000 (19:33 -0800)]
softpipe: Skip depth testing for PIPE_S8_UNORM.

14 years agomesa: Handle PIPE_FORMAT_B8G8R8X8_UNORM.
José Fonseca [Tue, 19 Jan 2010 03:32:36 +0000 (19:32 -0800)]
mesa: Handle PIPE_FORMAT_B8G8R8X8_UNORM.

14 years agopipebuffer: Ensure buffer size/alignment is not zero.
José Fonseca [Thu, 14 Jan 2010 15:07:20 +0000 (15:07 +0000)]
pipebuffer: Ensure buffer size/alignment is not zero.

14 years agosvga: Ensure buffer size/alignment is not zero.
José Fonseca [Thu, 14 Jan 2010 15:06:48 +0000 (15:06 +0000)]
svga: Ensure buffer size/alignment is not zero.

14 years agomesa: Remove unnecessary headers from lines.c.
Vinson Lee [Tue, 19 Jan 2010 03:32:51 +0000 (19:32 -0800)]
mesa: Remove unnecessary headers from lines.c.

14 years agomesa: Remove unnecessary header from mipmap.c.
Vinson Lee [Tue, 19 Jan 2010 03:23:47 +0000 (19:23 -0800)]
mesa: Remove unnecessary header from mipmap.c.

14 years agomesa: Remove unnecessary header from pixel.c.
Vinson Lee [Tue, 19 Jan 2010 03:20:56 +0000 (19:20 -0800)]
mesa: Remove unnecessary header from pixel.c.

14 years agomesa: Remove unnecessary headers from pixelstore.c.
Vinson Lee [Tue, 19 Jan 2010 03:14:23 +0000 (19:14 -0800)]
mesa: Remove unnecessary headers from pixelstore.c.

14 years agomesa: Remove unnecessary header from points.c.
Vinson Lee [Tue, 19 Jan 2010 03:10:05 +0000 (19:10 -0800)]
mesa: Remove unnecessary header from points.c.

14 years agomesa: Remove unnecessary header from polygon.c.
Vinson Lee [Tue, 19 Jan 2010 03:03:54 +0000 (19:03 -0800)]
mesa: Remove unnecessary header from polygon.c.

14 years agomesa: Remove unnecessary header from state.c.
Vinson Lee [Tue, 19 Jan 2010 02:54:54 +0000 (18:54 -0800)]
mesa: Remove unnecessary header from state.c.

14 years agomesa: Remove unnecessary headers from texcompress.c.
Vinson Lee [Tue, 19 Jan 2010 02:52:24 +0000 (18:52 -0800)]
mesa: Remove unnecessary headers from texcompress.c.

14 years agost/dri: Add comment for intentional fallthrough in case statement.
Vinson Lee [Tue, 19 Jan 2010 02:14:03 +0000 (18:14 -0800)]
st/dri: Add comment for intentional fallthrough in case statement.

14 years agost/mesa: change instruction count assertion to > 0
Brian Paul [Mon, 18 Jan 2010 18:26:55 +0000 (11:26 -0700)]
st/mesa: change instruction count assertion to > 0

Shaders should at least have an END instruction.

14 years agost/dri: fix optionCache memory leaks
Marcin Slusarz [Mon, 18 Jan 2010 17:48:06 +0000 (10:48 -0700)]
st/dri: fix optionCache memory leaks

Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agoglxgears: unbind current context before "destroying" it
Marcin Slusarz [Sun, 17 Jan 2010 22:49:34 +0000 (14:49 -0800)]
glxgears: unbind current context before "destroying" it

glXDestroyContext does not destroy the context if it's still
connected to some window. Unbind context from window to test it.

Signed-off-by: Brian Paul <brianp@vmware.com>