mesa.git
15 years agoprogs: Prevent clash with min macro.
José Fonseca [Thu, 12 Feb 2009 13:54:20 +0000 (13:54 +0000)]
progs: Prevent clash with min macro.

15 years agoglut: Don't try to guess system headers.
José Fonseca [Thu, 12 Feb 2009 13:52:16 +0000 (13:52 +0000)]
glut: Don't try to guess system headers.

Just include them, especially such basic header as stdlib.h

15 years agotgsi: keep immediate file info uptodate
Keith Whitwell [Thu, 12 Feb 2009 13:30:01 +0000 (13:30 +0000)]
tgsi: keep immediate file info uptodate

Make sure the stats for TGSI_FILE_IMMEDIATE are uptodate.  Previously
we just had immediate_count, but file_*[TGSI_FILE_IMMEDIATE] were
bogus.

15 years agoscons: Unbreak mingw builds.
José Fonseca [Thu, 12 Feb 2009 12:59:58 +0000 (12:59 +0000)]
scons: Unbreak mingw builds.

15 years agoscons: Build xlib state tracker regardless of DRI settings.
José Fonseca [Thu, 12 Feb 2009 11:58:04 +0000 (11:58 +0000)]
scons: Build xlib state tracker regardless of DRI settings.

15 years agoscons: Build DLLs/EXEs with more memory debugger friendlier settings.
José Fonseca [Thu, 12 Feb 2009 11:57:45 +0000 (11:57 +0000)]
scons: Build DLLs/EXEs with more memory debugger friendlier settings.

15 years agosoftpipe: asst clean-ups, const correctness, comments
Brian Paul [Thu, 12 Feb 2009 05:13:17 +0000 (22:13 -0700)]
softpipe: asst clean-ups, const correctness, comments

15 years agosoftpipe: remove unneeded #include
Brian Paul [Thu, 12 Feb 2009 05:03:34 +0000 (22:03 -0700)]
softpipe: remove unneeded #include

15 years agosoftpipe: asst comments, clean-ups
Brian Paul [Thu, 12 Feb 2009 05:01:43 +0000 (22:01 -0700)]
softpipe: asst comments, clean-ups

15 years agosoftpipe: remove some old polygon stipple stuff and do some clean-ups
Brian Paul [Thu, 12 Feb 2009 04:51:00 +0000 (21:51 -0700)]
softpipe: remove some old polygon stipple stuff and do some clean-ups

15 years agosoftpipe: updated comments
Brian [Thu, 12 Feb 2009 04:44:38 +0000 (21:44 -0700)]
softpipe: updated comments

15 years agosoftpipe: rename PRIM_x to QUAD_PRIM_x
Brian [Thu, 12 Feb 2009 04:38:20 +0000 (21:38 -0700)]
softpipe: rename PRIM_x to QUAD_PRIM_x

15 years agosoftpipe: rename sp_headers.h to sp_quad.h
Brian [Thu, 12 Feb 2009 04:33:59 +0000 (21:33 -0700)]
softpipe: rename sp_headers.h to sp_quad.h

This header describes the quad-related datatypes afterall.

15 years agosoftpipe: rename single-include preprocessor symbol, add comments
Brian [Thu, 12 Feb 2009 04:30:21 +0000 (21:30 -0700)]
softpipe: rename single-include preprocessor symbol, add comments

15 years agosoftpipe: rename sp_quad.[ch] -> sp_quad_pipe.[ch]
Brian [Thu, 12 Feb 2009 04:25:10 +0000 (21:25 -0700)]
softpipe: rename sp_quad.[ch] -> sp_quad_pipe.[ch]

Be more consistant with 'draw' module.

15 years agoFix an i965 assertion failure on glClear()
Robert Ellison [Thu, 12 Feb 2009 01:01:34 +0000 (18:01 -0700)]
Fix an i965 assertion failure on glClear()

While running conform with render-to-texture:

conform -d 33 -v 2 -t -direct

the i965 driver failed this assertion:

intel_clear.c:77: intel_clear_tris: Assertion `(mask & ~((1 << BUFFER_BACK_LEFT) | (1 << BUFFER_FRONT_LEFT) | (1 << BUFFER_DEPTH) | (1 << BUFFER_STENCIL))) == 0' failed.

The problem is that intel_clear_tris() is called by intelClear() to
clear any and all of the available color buffers, but intel_clear_tris()
actually only handles the back left and front left color buffers; so
the assertion fails as soon as you try to clear a non-standard color
buffer.

The fix is to have intelClear() only call intel_clear_tris() with
buffers that intel_clear_tris() can support.  intelClear() already backs
down to _swrast_Clear() for all buffers that aren't handled explicitly.

15 years agoautoconf: Fix lib globbing for static builds
Dan Nicholson [Wed, 11 Feb 2009 23:16:00 +0000 (15:16 -0800)]
autoconf: Fix lib globbing for static builds

Reported-by: Siddhartha Chaudhuri <expiring_frog@yahoo.co.uk>
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
15 years agogallium: const-correctness for u_linear.c functions
Brian Paul [Wed, 11 Feb 2009 21:11:48 +0000 (14:11 -0700)]
gallium: const-correctness for u_linear.c functions

15 years agogallium: silence warnings about void ptr arithmetic
Brian Paul [Wed, 11 Feb 2009 21:09:22 +0000 (14:09 -0700)]
gallium: silence warnings about void ptr arithmetic

15 years agomesa: refactor MATH_SOURCES, remove Mesa x86 codegen from gallium build
Brian Paul [Wed, 11 Feb 2009 20:59:54 +0000 (13:59 -0700)]
mesa: refactor MATH_SOURCES, remove Mesa x86 codegen from gallium build

Omit math/m_xform.c from gallium builds since it's not used and it's the
one place we were pulling in the Mesa x86 codegen which collides with
gallium's x86 codegen.

Can now omit ASM_C_SOURCES from gallium build too.

15 years agomesa: get rid of _math_init()
Brian Paul [Wed, 11 Feb 2009 20:52:17 +0000 (13:52 -0700)]
mesa: get rid of _math_init()

Only VBO uses the evaluator code so call _math_init_eval() there.

Only TNL uses the transform/translate code so call _math_init_transformation()
and _math_init_translate9) there.

This is a step toward resolving some symbol collisions between Mesa's and
gallium's x86 codegen.
Have VBO and TNL modules call _math_init_transformation()

15 years agoautoconf: Adjust to new asm SOURCES variables
Dan Nicholson [Wed, 11 Feb 2009 19:04:29 +0000 (11:04 -0800)]
autoconf: Adjust to new asm SOURCES variables

Commit 90b2beb661f630966788a6e909dc759c99e38973 changed the assembly
variables. Without this change, the glapi assembly wasn't being built
when it was supposed to, resulting in missing symbols in libGL.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
15 years agoautoconf: Restore commented ASM_FLAGS
Dan Nicholson [Wed, 11 Feb 2009 18:42:34 +0000 (10:42 -0800)]
autoconf: Restore commented ASM_FLAGS

This is not the proper approach to disabling assembly. If there are bugs,
they should be fixed or the assembly can default to off.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
15 years agoAdd external pixman CFLAGS after all internal include paths
Dan Nicholson [Wed, 11 Feb 2009 17:55:20 +0000 (09:55 -0800)]
Add external pixman CFLAGS after all internal include paths

With the pixman CFLAGS at the beginning of the command line, my build
was picking up the glcore.h from glproto, which doesn't have any of the
TFP fields in __GLcontextmodes.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
15 years agonouveau: 1xN, Nx1 levels of a swizzled mip tree shouldn't be aligned.
Younes Manton [Wed, 11 Feb 2009 16:52:32 +0000 (11:52 -0500)]
nouveau: 1xN, Nx1 levels of a swizzled mip tree shouldn't be aligned.

15 years agodraw: Cap max vertices instead of failing assert.
José Fonseca [Wed, 11 Feb 2009 16:35:12 +0000 (16:35 +0000)]
draw: Cap max vertices instead of failing assert.

15 years agodemos: minor updates for shader_api.c test
Brian Paul [Wed, 11 Feb 2009 16:14:07 +0000 (09:14 -0700)]
demos: minor updates for shader_api.c test

Mesa's glGetUniformLocation() does support array indexes.

Minor code reformatting.

It would be great if this program were converted into a glean test...

15 years agoglsl: allow setting arrays of samplers in set_program_uniform()
Brian Paul [Wed, 11 Feb 2009 16:12:34 +0000 (09:12 -0700)]
glsl: allow setting arrays of samplers in set_program_uniform()

Arrays of sampler vars haven't been tested much and might actually be broken.
Will need to be revisited someday.

Another fix for bug 20056.

15 years agoglsl: raise GL_INVALID_OPERATION for glUniform(location < -1)
Brian Paul [Wed, 11 Feb 2009 16:05:08 +0000 (09:05 -0700)]
glsl: raise GL_INVALID_OPERATION for glUniform(location < -1)

location = -1 is silently ignored, but other negative values should raise
an error.

Another fix for bug 20056.

15 years agoglsl: rework _mesa_get_uniform[fi]v() to avoid using a fixed size intermediate array
Brian Paul [Wed, 11 Feb 2009 16:03:16 +0000 (09:03 -0700)]
glsl: rework _mesa_get_uniform[fi]v() to avoid using a fixed size intermediate array

15 years agoglsl: fix glUniform() array bounds error checking
Brian Paul [Wed, 11 Feb 2009 15:46:21 +0000 (08:46 -0700)]
glsl: fix glUniform() array bounds error checking

If too many array elements are specified, they're to be silently ignored (don't
raise a GL error).

Fixes another issue in bug 20056.

15 years agoglsl: fix incorrect size returned by glGetActiveUniform() for array elements.
Brian Paul [Wed, 11 Feb 2009 15:16:14 +0000 (08:16 -0700)]
glsl: fix incorrect size returned by glGetActiveUniform() for array elements.

Fixes one of the issues in bug 20056.

15 years agoAdd install target for egl
Johannes Engel [Wed, 11 Feb 2009 10:31:05 +0000 (11:31 +0100)]
Add install target for egl

Signed-off-by: Johannes Engel <jcnengel@googlemail.com>
Acked-by: Jakob Bornecrantz <jakob@vmware.com>
15 years agodemos: better error message for overlay.c, see bug 20055
Brian Paul [Wed, 11 Feb 2009 14:53:36 +0000 (07:53 -0700)]
demos: better error message for overlay.c, see bug 20055

15 years agomesa: Use the stdio wrappers.
José Fonseca [Wed, 11 Feb 2009 13:52:11 +0000 (13:52 +0000)]
mesa: Use the stdio wrappers.

snprint symbol does not exist in Windows.

15 years agowgl: Add a few more stubs.
José Fonseca [Wed, 11 Feb 2009 13:51:34 +0000 (13:51 +0000)]
wgl: Add a few more stubs.

I wonder why we need this... It is only necessary for the MSVC build.
MinGW does not require them.

15 years agomesa: Move statements after declarations.
José Fonseca [Wed, 11 Feb 2009 13:50:43 +0000 (13:50 +0000)]
mesa: Move statements after declarations.

15 years agointel: Add x8r8g8b8 visuals to DRI1 fbconfigs alongside a8r8gb8.
Eric Anholt [Tue, 10 Feb 2009 22:30:38 +0000 (14:30 -0800)]
intel: Add x8r8g8b8 visuals to DRI1 fbconfigs alongside a8r8gb8.

This involved fixing driConcatConfigs to not return const (which had made a
mess of a previous patch too).

15 years agosis: fix signedness warnings
Eric Anholt [Tue, 10 Feb 2009 22:27:16 +0000 (14:27 -0800)]
sis: fix signedness warnings

15 years agotrident: Fix signedness warning.
Eric Anholt [Tue, 10 Feb 2009 22:24:06 +0000 (14:24 -0800)]
trident: Fix signedness warning.

15 years agotdfx: Fix begin/endquery for current API.
Eric Anholt [Tue, 10 Feb 2009 22:22:26 +0000 (14:22 -0800)]
tdfx: Fix begin/endquery for current API.

15 years agointel: Don't do the extra MI_FLUSH in flushing except when doing glFlush().
Eric Anholt [Mon, 9 Feb 2009 23:55:15 +0000 (15:55 -0800)]
intel: Don't do the extra MI_FLUSH in flushing except when doing glFlush().

Everything other than "make sure the last rendering ends up visible on the
screen" doesn't need that behavior.

15 years agointel: Speed up glDrawPixels(GL_ALPHA) by using an alpha texture format.
Eric Anholt [Mon, 9 Feb 2009 13:55:31 +0000 (14:55 +0100)]
intel: Speed up glDrawPixels(GL_ALPHA) by using an alpha texture format.

15 years agointel: Fix some state leakage of {Client,}ActiveTexture in metaops.
Eric Anholt [Mon, 9 Feb 2009 14:25:30 +0000 (15:25 +0100)]
intel: Fix some state leakage of {Client,}ActiveTexture in metaops.

Found while debugging cairo-gl.

15 years agointel: don't crash when dri2 tells us about buffers we don't care about.
Eric Anholt [Sun, 8 Feb 2009 14:39:51 +0000 (15:39 +0100)]
intel: don't crash when dri2 tells us about buffers we don't care about.

15 years agodri2: Don't crash if the server returns more buffers than expected.
Eric Anholt [Sun, 8 Feb 2009 14:26:30 +0000 (15:26 +0100)]
dri2: Don't crash if the server returns more buffers than expected.

15 years agodri2: Initialize variables for the getbuffers round-trip reduction.
Eric Anholt [Sun, 8 Feb 2009 14:22:34 +0000 (15:22 +0100)]
dri2: Initialize variables for the getbuffers round-trip reduction.

Missed setting the initial values which usually didn't hurt at runtime.

15 years agodocs: some Cell driver docs updates
Brian Paul [Wed, 11 Feb 2009 02:36:52 +0000 (19:36 -0700)]
docs: some Cell driver docs updates

15 years agocell: asst build fixes in linux-cell config
Brian Paul [Wed, 11 Feb 2009 02:33:02 +0000 (19:33 -0700)]
cell: asst build fixes in linux-cell config

Add -D_SVID_SOURCE to silence warnings when building glx files.
Don't build the non-gallium drivers.

15 years agogallium: Update autoconf to latest gallium build
Jakob Bornecrantz [Wed, 11 Feb 2009 01:38:21 +0000 (02:38 +0100)]
gallium: Update autoconf to latest gallium build

15 years agogallium: Disable nouveau by default
Jakob Bornecrantz [Wed, 11 Feb 2009 01:25:10 +0000 (02:25 +0100)]
gallium: Disable nouveau by default

Most piep drivers should be able to build by default, but since
the nouveau ones depend drm they can't be enabled by default.

15 years agocell: update Cell driver info (code is on master now)
Brian Paul [Tue, 10 Feb 2009 23:56:58 +0000 (16:56 -0700)]
cell: update Cell driver info (code is on master now)

15 years agoMerge commit 'origin/gallium-master-merge'
Brian Paul [Tue, 10 Feb 2009 23:44:02 +0000 (16:44 -0700)]
Merge commit 'origin/gallium-master-merge'

This is the big merge of the gallium-0.2 branch into master.
gallium-master-merge was just the staging area for it.
Both gallium-0.2 and gallium-master-merge are considered closed now.

Conflicts:

progs/demos/Makefile
src/mesa/main/state.c
src/mesa/main/texenvprogram.c

15 years agoMerge commit 'origin/gallium-0.2' into gallium-master-merge
Brian Paul [Tue, 10 Feb 2009 23:34:51 +0000 (16:34 -0700)]
Merge commit 'origin/gallium-0.2' into gallium-master-merge

15 years agomesa: remove the unused _mesa_UpdateTexEnvProgram() function
Brian Paul [Tue, 10 Feb 2009 23:30:24 +0000 (16:30 -0700)]
mesa: remove the unused _mesa_UpdateTexEnvProgram() function

15 years agomesa: another fix for program/texture state validation
Brian Paul [Tue, 10 Feb 2009 23:28:25 +0000 (16:28 -0700)]
mesa: another fix for program/texture state validation

This fixes a regression introduced in 46ae1abbac6837d051c10b2e8b57eab3d4958ff4

Break program validation into two steps, do part before texture state
validation and do the rest after:
1. Determine Vertex/Fragment _Enabled state.
2. Update texture state.
3. Determine pointers to current Vertex/Fragment programs (which may involve
generating new "fixed-function" programs).

See comments in the code for more details of the dependencies.

15 years agointel: minor reformatting, comments
Brian Paul [Tue, 10 Feb 2009 17:12:44 +0000 (10:12 -0700)]
intel: minor reformatting, comments

15 years agomesa: s/_IMAGE_NEW_TRANSFER_STATE/_MESA_NEW_TRANSFER_STATE/ to be more consistant...
Brian Paul [Tue, 10 Feb 2009 22:43:05 +0000 (15:43 -0700)]
mesa: s/_IMAGE_NEW_TRANSFER_STATE/_MESA_NEW_TRANSFER_STATE/ to be more consistant with other flags

15 years agomesa: fix/change state validation order for program/texture state
Brian Paul [Tue, 10 Feb 2009 22:35:25 +0000 (15:35 -0700)]
mesa: fix/change state validation order for program/texture state

Program state needs to be updated before texture state since the later depends
on the former.

Fixes piglit texgen failure.  The second time through the modes (press 't'
three times) we disable the fragment program and return to conventional texture
mode.  State validation failed here because update_texture() saw stale fragment
program state.

15 years agonouveau: nv40 swizzled mipmap fixes.
Younes Manton [Tue, 10 Feb 2009 21:36:33 +0000 (16:36 -0500)]
nouveau: nv40 swizzled mipmap fixes.

15 years agonouveau: nv30: fix miptree organization to have swizzled texture+mipmap at the right...
Patrice Mandin [Tue, 10 Feb 2009 21:22:55 +0000 (22:22 +0100)]
nouveau: nv30: fix miptree organization to have swizzled texture+mipmap at the right places

15 years agonouveau: revert all my changes here, not the right way
Patrice Mandin [Tue, 10 Feb 2009 21:22:06 +0000 (22:22 +0100)]
nouveau: revert all my changes here, not the right way

15 years agonouveau: stop with 0 dimension
Patrice Mandin [Tue, 10 Feb 2009 21:04:56 +0000 (22:04 +0100)]
nouveau: stop with 0 dimension

15 years agonouveau: we already have the right src offset
Patrice Mandin [Tue, 10 Feb 2009 20:57:40 +0000 (21:57 +0100)]
nouveau: we already have the right src offset

15 years agoprogs: Build samples dir with scons and glew.
José Fonseca [Tue, 10 Feb 2009 20:27:49 +0000 (20:27 +0000)]
progs: Build samples dir with scons and glew.

15 years agonouveau: do not forget to half dimension.
Patrice Mandin [Tue, 10 Feb 2009 20:22:29 +0000 (21:22 +0100)]
nouveau: do not forget to half dimension.

15 years agonouveau: revert most parts of recent mipmap+swizzle stuff. We only need to find right...
Patrice Mandin [Tue, 10 Feb 2009 20:20:06 +0000 (21:20 +0100)]
nouveau: revert most parts of recent mipmap+swizzle stuff. We only need to find right src and dst offset for given mipmap level.

15 years agoprogs: Build rebook with scons too.
José Fonseca [Tue, 10 Feb 2009 18:25:31 +0000 (18:25 +0000)]
progs: Build rebook with scons too.

15 years agowgl: return before locking if stw_icd is NULL
Keith Whitwell [Tue, 10 Feb 2009 18:21:41 +0000 (18:21 +0000)]
wgl: return before locking if stw_icd is NULL

15 years agoMerge commit 'origin/gallium-0.2' into gallium-0.2
Keith Whitwell [Tue, 10 Feb 2009 19:22:57 +0000 (19:22 +0000)]
Merge commit 'origin/gallium-0.2' into gallium-0.2

Conflicts:

src/gallium/state_trackers/wgl/icd/stw_icd.c

15 years agoscons: Use parallel builds by default.
José Fonseca [Tue, 10 Feb 2009 18:11:56 +0000 (18:11 +0000)]
scons: Use parallel builds by default.

15 years agowgl: mutex-protect the shared stw_icd struct
Keith Whitwell [Tue, 10 Feb 2009 18:11:44 +0000 (18:11 +0000)]
wgl: mutex-protect the shared stw_icd struct

15 years agonouveau: dst offset is correct
Patrice Mandin [Tue, 10 Feb 2009 17:44:08 +0000 (18:44 +0100)]
nouveau: dst offset is correct

15 years agopipebuffer: Drop reliance on pipe_winsys.
José Fonseca [Tue, 10 Feb 2009 16:18:22 +0000 (16:18 +0000)]
pipebuffer: Drop reliance on pipe_winsys.

15 years agoMissing: tgsi: Fix build -- rename Size to NrTokens.
Patrice Mandin [Tue, 10 Feb 2009 17:31:41 +0000 (18:31 +0100)]
Missing: tgsi: Fix build -- rename Size to NrTokens.

15 years agonouveau: recalc sub width and height for each mipmap level
Patrice Mandin [Tue, 10 Feb 2009 17:09:10 +0000 (18:09 +0100)]
nouveau: recalc sub width and height for each mipmap level

15 years agomesa: Build both software rasterizers for debug
Jakob Bornecrantz [Tue, 10 Feb 2009 16:43:25 +0000 (17:43 +0100)]
mesa: Build both software rasterizers for debug

   But put the gallium one in lib/gallium

15 years agogallium: Don't rebuild common drm code
Jakob Bornecrantz [Tue, 10 Feb 2009 15:17:32 +0000 (16:17 +0100)]
gallium: Don't rebuild common drm code

15 years agogallium: Install DRI drivers into lib/gallium
Jakob Bornecrantz [Tue, 10 Feb 2009 15:16:15 +0000 (16:16 +0100)]
gallium: Install DRI drivers into lib/gallium

15 years agogallium: Introduce new subdirs build variables
Jakob Bornecrantz [Tue, 10 Feb 2009 15:23:02 +0000 (16:23 +0100)]
gallium: Introduce new subdirs build variables

(based on gallium-xorg-driver/commit 270ce504052d415870a25ab59818b2309eb8ac13)

15 years agoRevert "cell: update linux-cell config"
Jakob Bornecrantz [Tue, 10 Feb 2009 13:14:28 +0000 (14:14 +0100)]
Revert "cell: update linux-cell config"

This reverts commit 22c6c1eaad49692416f45bcbbcdc6424aea2da7c.

Need to revert this since we reverted commited this depended on.

15 years agoRevert "mesa: added new linux-gallium and linux-gallium-debug configs"
Jakob Bornecrantz [Tue, 10 Feb 2009 12:59:35 +0000 (13:59 +0100)]
Revert "mesa: added new linux-gallium and linux-gallium-debug configs"

This reverts commit abbe96cb6e7581a52652030e40442b943a482840.

It only reverts parts of the commit the other parts where related to
libmesagallium changes.

15 years agonv40: Fix build -- rename Size to NrTokens.
Michal Krol [Tue, 10 Feb 2009 14:18:32 +0000 (15:18 +0100)]
nv40: Fix build -- rename Size to NrTokens.

15 years agonv30: Fix build -- rename Size to NrTokens.
Michal Krol [Tue, 10 Feb 2009 14:18:19 +0000 (15:18 +0100)]
nv30: Fix build -- rename Size to NrTokens.

15 years agonv20: Fix build -- rename Size to NrTokens.
Michal Krol [Tue, 10 Feb 2009 14:18:03 +0000 (15:18 +0100)]
nv20: Fix build -- rename Size to NrTokens.

15 years agobrw: Fix build -- rename Size to NrTokens.
Michal Krol [Tue, 10 Feb 2009 14:17:41 +0000 (15:17 +0100)]
brw: Fix build -- rename Size to NrTokens.

15 years agoi915: Fix build -- rename Size to NrTokens.
Michal Krol [Tue, 10 Feb 2009 14:17:17 +0000 (15:17 +0100)]
i915: Fix build -- rename Size to NrTokens.

15 years agogallivm: Fix build -- rename Size to NrTokens.
Michal Krol [Tue, 10 Feb 2009 14:16:35 +0000 (15:16 +0100)]
gallivm: Fix build -- rename Size to NrTokens.

15 years agodraw: Fix build -- rename Size to NrTokens.
Michal Krol [Tue, 10 Feb 2009 14:16:00 +0000 (15:16 +0100)]
draw: Fix build -- rename Size to NrTokens.

15 years agotgsi: Fix build -- rename Size to NrTokens.
Michal Krol [Tue, 10 Feb 2009 14:14:31 +0000 (15:14 +0100)]
tgsi: Fix build -- rename Size to NrTokens.

15 years agogallium: Rename Size member of TGSI token to NrTokens.
Michal Krol [Tue, 10 Feb 2009 14:12:34 +0000 (15:12 +0100)]
gallium: Rename Size member of TGSI token to NrTokens.

Driver writers often got confused and assumed Size to be
the number of immediate values in Immediate declaration.

15 years agovmw/icd: remove bogus current_context value
Keith Whitwell [Tue, 10 Feb 2009 14:03:43 +0000 (14:03 +0000)]
vmw/icd: remove bogus current_context value

15 years agomesa: Compare formats using nominal bytes per pixel.
José Fonseca [Tue, 10 Feb 2009 13:40:00 +0000 (13:40 +0000)]
mesa: Compare formats using nominal bytes per pixel.

This is a temporary fix which works for the formats we care so far. The
real fix would be abandon the concept "nominal bytes per pixel" entirely
in Mesa, and use macropixels instead, as done in gallium interfaces
already.

15 years agogallium: Fixups for driCreateConfigs MSAA support.
Michel Dänzer [Tue, 10 Feb 2009 12:47:49 +0000 (13:47 +0100)]
gallium: Fixups for driCreateConfigs MSAA support.

Add the MSAA samples array or make sure its contents are initialized.

15 years agowgl: Fix null pointer reference.
José Fonseca [Tue, 10 Feb 2009 11:50:54 +0000 (11:50 +0000)]
wgl: Fix null pointer reference.

15 years agostw: Hack for applications which use wglSetPixelFormat instead of SetPixelFormat.
José Fonseca [Tue, 10 Feb 2009 11:37:23 +0000 (11:37 +0000)]
stw: Hack for applications which use wglSetPixelFormat instead of SetPixelFormat.

15 years agoglut: Use the official WGL functions.
José Fonseca [Tue, 10 Feb 2009 11:36:48 +0000 (11:36 +0000)]
glut: Use the official WGL functions.

Especially using wglGetPixelFormat instead of GetPixelFormat causes
problems with opengl32.dll and drivers that not hack around this issue.

15 years agoglut: DESCRIPTION .def clause deprecated.
José Fonseca [Tue, 10 Feb 2009 11:35:26 +0000 (11:35 +0000)]
glut: DESCRIPTION .def clause deprecated.

15 years agowgl: s/0x%p/%p/g
José Fonseca [Mon, 9 Feb 2009 21:08:49 +0000 (21:08 +0000)]
wgl: s/0x%p/%p/g

Rather not have 0x prefix, than 0x0x in certain platforms.

15 years agodemos: remove OSMESA stuff from Makefile
Brian [Sat, 7 Feb 2009 23:10:21 +0000 (16:10 -0700)]
demos: remove OSMESA stuff from Makefile