platform/upstream/mesa.git
14 years agoprogs/fp: Redraw upon keypress.
Vinson Lee [Sat, 5 Dec 2009 07:31:39 +0000 (23:31 -0800)]
progs/fp: Redraw upon keypress.

14 years agomesa: Fix array out-of-bounds access in _mesa_TexEnvf.
Vinson Lee [Sun, 29 Nov 2009 03:04:06 +0000 (22:04 -0500)]
mesa: Fix array out-of-bounds access in _mesa_TexEnvf.

_mesa_TexEnvf calls _mesa_TexEnvfv, which uses the param argument
as an array.
(cherry picked from commit a11d60d14caf8efc07f70af63b57b33273f8cf9b)

14 years agoprogs/util: Fix memory leak if fread returns 0 in CompileShaderFile.
Vinson Lee [Tue, 17 Nov 2009 20:00:22 +0000 (12:00 -0800)]
progs/util: Fix memory leak if fread returns 0 in CompileShaderFile.
(cherry picked from commit 11905da8836822f7dd60c84b5eefc72e46c94b50)

14 years agoprogs/util: Fix memory leak if fail to load/compile shader
Vinson Lee [Tue, 3 Nov 2009 21:41:08 +0000 (14:41 -0700)]
progs/util: Fix memory leak if fail to load/compile shader

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

14 years agoprogs/fp: Add tri-inv.c to Makefile.
Vinson Lee [Sat, 5 Dec 2009 01:29:53 +0000 (17:29 -0800)]
progs/fp: Add tri-inv.c to Makefile.

14 years agor300g: use $(MAKE) variable
Coleman Kane [Fri, 4 Dec 2009 15:44:57 +0000 (08:44 -0700)]
r300g: use $(MAKE) variable

Fixes bug 24501

14 years agoprogs/xdemos: fix some visual/fbconfig logic in glxinfo.c
Brian Paul [Fri, 4 Dec 2009 15:09:55 +0000 (08:09 -0700)]
progs/xdemos: fix some visual/fbconfig logic in glxinfo.c

The fbAttribSingle/Double arrays had wrong GLX_DOUBLEBUFFER values.
We only need to use the glXChooseFBConfig() code when glXChooseVisual()
fails (but I don't know when that would happen).
Other recent commits errantly removed some code in this area too.

14 years agodocs: a few more fixes for 7.6.1
Brian Paul [Fri, 4 Dec 2009 15:09:07 +0000 (08:09 -0700)]
docs: a few more fixes for 7.6.1

14 years agoradeon: fix polygon stipple
Alex Deucher [Fri, 4 Dec 2009 14:52:37 +0000 (09:52 -0500)]
radeon: fix polygon stipple

fixes fdo bug 25354

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
14 years agoglu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
Vinson Lee [Thu, 26 Nov 2009 05:35:31 +0000 (00:35 -0500)]
glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
(cherry picked from commit 808f0376607b0e2d31dfebc888fd8f1e737fed09)

14 years agoglu/sgi: Fix memory leak in gluBuild1DMipmapLevelsCore.
Vinson Lee [Wed, 25 Nov 2009 05:39:37 +0000 (00:39 -0500)]
glu/sgi: Fix memory leak in gluBuild1DMipmapLevelsCore.
(cherry picked from commit 94bcb9f1a43f2ab3bdff09156e3ab5b1c115cbd8)

14 years agoglu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
Vinson Lee [Wed, 25 Nov 2009 05:28:56 +0000 (00:28 -0500)]
glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
(cherry picked from commit 0d89f3dc7ff3f89ba8d5d664253730485bca35e2)

14 years agoglu/sgi: Fix memory leak in gluBuild3DMipmapLevelsCore.
Vinson Lee [Wed, 25 Nov 2009 05:18:49 +0000 (00:18 -0500)]
glu/sgi: Fix memory leak in gluBuild3DMipmapLevelsCore.
(cherry picked from commit f895abbd9777c4985aa40cf660c68f6d7333f0ec)

14 years agoglu/sgi: Fix memory leak in gluBuild3DMipmapLevelsCore.
Vinson Lee [Tue, 24 Nov 2009 06:23:12 +0000 (01:23 -0500)]
glu/sgi: Fix memory leak in gluBuild3DMipmapLevelsCore.
(cherry picked from commit 326b66d724754ca97012501db1c7c62d7d41a457)

14 years agoglu/sgi: Fix memory leak in bitmapBuild2DMipmaps.
Vinson Lee [Mon, 23 Nov 2009 06:09:06 +0000 (01:09 -0500)]
glu/sgi: Fix memory leak in bitmapBuild2DMipmaps.
(cherry picked from commit 5b925b7daa566d799c4f50911a7fcca114131503)

14 years agoglu/sgi: Fix memory leak in gluScaleImage3D.
Vinson Lee [Mon, 23 Nov 2009 05:57:37 +0000 (00:57 -0500)]
glu/sgi: Fix memory leak in gluScaleImage3D.
(cherry picked from commit b611f639b4bffdcca376293f7ce71af9f6bdbff3)

14 years agoglu/sgi: Fix memory leak in gluScaleImage.
Vinson Lee [Sun, 22 Nov 2009 06:57:35 +0000 (01:57 -0500)]
glu/sgi: Fix memory leak in gluScaleImage.
(cherry picked from commit a9c540f5dedbf593f8038fdbc95eecb60826ab26)

14 years agoglu: Fix memory leak in __gl_meshMakeEdge.
Vinson Lee [Sun, 22 Nov 2009 06:45:53 +0000 (01:45 -0500)]
glu: Fix memory leak in __gl_meshMakeEdge.
(cherry picked from commit d3b4c99c703f70a9d0e715a97e52672f7f8fc980)

14 years agoprogs/xdemos: Silence unused value warnings in sharedtex_mt.c.
Vinson Lee [Fri, 20 Nov 2009 21:09:42 +0000 (13:09 -0800)]
progs/xdemos: Silence unused value warnings in sharedtex_mt.c.
(cherry picked from commit 8556fad75124e1ade9af095e112ebb6ac5cbff61)

14 years agoprogs/xdemos: Fix memory leak in pbdemo.c.
Vinson Lee [Fri, 20 Nov 2009 23:48:29 +0000 (15:48 -0800)]
progs/xdemos: Fix memory leak in pbdemo.c.
(cherry picked from commit e0857962b911ef317238498305651515d83029ae)

14 years agoprogs/xdemos: Add missing break statement in offset.c.
Vinson Lee [Thu, 19 Nov 2009 22:20:26 +0000 (14:20 -0800)]
progs/xdemos: Add missing break statement in offset.c.
(cherry picked from commit 4ab8dbe5935d5c946cbc9af6982461073a784d07)

14 years agoprogs/xdemos: Remove duplicate code in glxinfo.c.
Vinson Lee [Fri, 20 Nov 2009 23:06:56 +0000 (15:06 -0800)]
progs/xdemos: Remove duplicate code in glxinfo.c.
(cherry picked from commit a4720a1a3206dd2edecf47a21fce547a79b67610)

14 years agoprogs/xdemos: Fix memory leak in glxinfo.c.
Vinson Lee [Fri, 20 Nov 2009 21:01:22 +0000 (13:01 -0800)]
progs/xdemos: Fix memory leak in glxinfo.c.
(cherry picked from commit f080567f4c4018c4885c105a154cb0eb39e6234f)

14 years agoprogs/xdemos: Add assert in corender.c.
Vinson Lee [Fri, 20 Nov 2009 23:03:16 +0000 (15:03 -0800)]
progs/xdemos: Add assert in corender.c.
(cherry picked from commit 66a4ec14c38d407256545e0cf31c98974d621fe4)

14 years agoprogs/vp: Fix memory leak in vp-tris.c.
Vinson Lee [Fri, 20 Nov 2009 06:59:01 +0000 (22:59 -0800)]
progs/vp: Fix memory leak in vp-tris.c.
(cherry picked from commit 760cf71572a071ce43da576ebfeff4a8099150bc)

14 years agoprogs/tests: Fix memory leak in texdown.c if malloc fails.
Vinson Lee [Thu, 19 Nov 2009 01:30:50 +0000 (17:30 -0800)]
progs/tests: Fix memory leak in texdown.c if malloc fails.
(cherry picked from commit e3cfd78969cd4a94fc83a5d6fb2f33730cc4e70f)

14 years agoprogs/redbook: Fix memory leak in quadric.c.
Vinson Lee [Tue, 17 Nov 2009 22:10:35 +0000 (14:10 -0800)]
progs/redbook: Fix memory leak in quadric.c.
(cherry picked from commit 47b5f584a68ceab7c9c1d5279efbc9fe30ff2fcc)

14 years agoprogs/glsl: Fix memory leak in deriv.c.
Vinson Lee [Tue, 17 Nov 2009 17:53:19 +0000 (09:53 -0800)]
progs/glsl: Fix memory leak in deriv.c.
(cherry picked from commit 0e783c7d03128aade3ca50b28a56e254fef6b6ab)

14 years agoprogs/glsl: Change tangentAttrib from GLuint to GLint in bump.c.
Vinson Lee [Tue, 17 Nov 2009 19:37:48 +0000 (11:37 -0800)]
progs/glsl: Change tangentAttrib from GLuint to GLint in bump.c.

tangentAtrrib is assigned the result of glGetAttribLocation.
The assertion 'assert(tangentAtrrib >= 0)' would be a no-op if
tangentAttrib is a GLuint.
(cherry picked from commit b8dcb79c53796f37234bd2b0f5e2845f817fc218)

14 years agoprogs/demos: Fix memory leak in ray.c.
Vinson Lee [Tue, 17 Nov 2009 02:06:40 +0000 (18:06 -0800)]
progs/demos: Fix memory leak in ray.c.
(cherry picked from commit 6b480dc21dd489d48685b2268e495218aea74293)

14 years agoprogs/demos: Fix memory leak in projtex.c.
Vinson Lee [Tue, 17 Nov 2009 00:31:34 +0000 (16:31 -0800)]
progs/demos: Fix memory leak in projtex.c.
(cherry picked from commit ee555e3d69c8820f27e71e5ebc028a768cef7d0b)

14 years agoprogs/demos: Fix memory leak in ipers.c.
Vinson Lee [Mon, 16 Nov 2009 23:44:52 +0000 (15:44 -0800)]
progs/demos: Fix memory leak in ipers.c.
(cherry picked from commit a1afe303deda320aadacdaf5b1c72631ca3f734f)

14 years agoprogs/demos: Fix memory leak in fslight.c.
Vinson Lee [Mon, 16 Nov 2009 22:56:07 +0000 (14:56 -0800)]
progs/demos: Fix memory leak in fslight.c.
(cherry picked from commit aef3218f0bb48fdb286d2008ee07e507ea8aa98e)

14 years agogallium/util: Initialize variables in u_pack_color.h.
Vinson Lee [Fri, 20 Nov 2009 22:20:15 +0000 (14:20 -0800)]
gallium/util: Initialize variables in u_pack_color.h.
(cherry picked from commit 36e2074b63e3e5bc489eb74cad0cd97eafcedb40)

14 years agoprogs/trivial: Redraw upon keypress.
Vinson Lee [Fri, 20 Nov 2009 06:52:05 +0000 (22:52 -0800)]
progs/trivial: Redraw upon keypress.
(cherry picked from commit 9553a42f638bd98eb90e5b7fb37d6b82758b6363)

14 years agoprogs/trivial: Redraw upon keypress.
Vinson Lee [Thu, 19 Nov 2009 21:03:12 +0000 (13:03 -0800)]
progs/trivial: Redraw upon keypress.
(cherry picked from commit 3790c6a13b86dfe0afd4bb0bf9a4d9f4b429cfd8)

14 years agoprogs/glsl: Redraw upon keypress.
Vinson Lee [Fri, 20 Nov 2009 06:46:19 +0000 (22:46 -0800)]
progs/glsl: Redraw upon keypress.
(cherry picked from commit 881f55236ad85f95745e70f8363726fa3c201f80)

14 years agoprogs/util: Exit RawImageGetData early if malloc fails.
Vinson Lee [Fri, 20 Nov 2009 20:11:55 +0000 (12:11 -0800)]
progs/util: Exit RawImageGetData early if malloc fails.

Prevents a null pointer deference later on.
(cherry picked from commit e26135a744f740430e3dc341fa692544ba99c11e)

14 years agoprogs/util: Fix memory leak if malloc fails in RawImageOpen.
Vinson Lee [Fri, 20 Nov 2009 19:22:13 +0000 (11:22 -0800)]
progs/util: Fix memory leak if malloc fails in RawImageOpen.
(cherry picked from commit d36cb2396c942f05ba56c5b899792a507bb0f0fd)

14 years agoprogs/util: Fix memory leak if fopen fails in RawImageOpen.
Vinson Lee [Tue, 17 Nov 2009 21:49:31 +0000 (13:49 -0800)]
progs/util: Fix memory leak if fopen fails in RawImageOpen.
(cherry picked from commit d9508e8df9da4aa13bc223194c406081738bac91)

14 years agoprogs/util: Fix memory leak if malloc fails in tkRGBImageLoad.
Vinson Lee [Tue, 17 Nov 2009 19:04:24 +0000 (11:04 -0800)]
progs/util: Fix memory leak if malloc fails in tkRGBImageLoad.
(cherry picked from commit 786d539511eb3c5a4101b11b7f8e90d60123ac46)

14 years agoprogs/util: Fix memory leak if LoadRGBImage fails.
Vinson Lee [Tue, 17 Nov 2009 18:11:50 +0000 (10:11 -0800)]
progs/util: Fix memory leak if LoadRGBImage fails.
(cherry picked from commit 041cd0e110d41b543a0fe9cc484ae8373642912b)

14 years agoprogs/util: Fix memory if LoadRGBMipmaps2 fails.
Vinson Lee [Tue, 17 Nov 2009 16:29:36 +0000 (08:29 -0800)]
progs/util: Fix memory if LoadRGBMipmaps2 fails.
(cherry picked from commit 28b8e4bcd76cc072b062e4c8575327c05ecb9a55)

14 years agoprogs/util: Fix memory leak if LoadYUVImage fails.
Vinson Lee [Tue, 17 Nov 2009 02:22:26 +0000 (18:22 -0800)]
progs/util: Fix memory leak if LoadYUVImage fails.
(cherry picked from commit 0e790ac35327a0b53a4a595a6429135317302269)

14 years agoprogs/fp: Redraw upon keypress.
Vinson Lee [Wed, 18 Nov 2009 22:41:40 +0000 (14:41 -0800)]
progs/fp: Redraw upon keypress.
(cherry picked from commit cde66437247feb8b14b6d8f3ec3a8b4665fefa08)

14 years agoprog/tests: Fix MSVC build.
Vinson Lee [Fri, 30 Oct 2009 21:02:21 +0000 (15:02 -0600)]
prog/tests: Fix MSVC build.

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

14 years agoprogs/tests: fix MSVC build.
Vinson Lee [Fri, 30 Oct 2009 15:39:51 +0000 (09:39 -0600)]
progs/tests: fix MSVC build.

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

14 years agoprogs/tests: Fix MSVC build.
Vinson Lee [Mon, 26 Oct 2009 21:03:31 +0000 (15:03 -0600)]
progs/tests: Fix MSVC build.
(cherry picked from commit 50e113e375b4ecfdf5b60ccce7bbcdb1c5f2ca11)

14 years agoprogs/tests: Fix MSVC build.
Vinson Lee [Fri, 23 Oct 2009 19:49:02 +0000 (13:49 -0600)]
progs/tests: Fix MSVC build.
(cherry picked from commit 952bf63e2cf442504ef89b0b1d276da0d52b21d4)

14 years agoprogs/tests: Use rand() instead of random().
José Fonseca [Fri, 16 Oct 2009 10:39:29 +0000 (11:39 +0100)]
progs/tests: Use rand() instead of random().

Forgot these on previous commit.
(cherry picked from commit 166957abebea6aa203eba7e6348e89d53cf0e13e)

14 years agoprogs/tests: Use rand() instead of random().
José Fonseca [Fri, 16 Oct 2009 10:39:29 +0000 (11:39 +0100)]
progs/tests: Use rand() instead of random().

More portable. Same implementation on Linux.
(cherry picked from commit 699260b19535abaa3af0a5d33eb039e3d6a30ce9)

14 years agoprogs/tests: Fix MSVC build.
Vinson Lee [Thu, 8 Oct 2009 14:08:11 +0000 (08:08 -0600)]
progs/tests: Fix MSVC build.
(cherry picked from commit f7455ad7af09b5ef31ccc454b79422a13c59af9a)

14 years agoprog/tests: Fix MSVC build.
Vinson Lee [Fri, 16 Oct 2009 10:36:09 +0000 (11:36 +0100)]
prog/tests: Fix MSVC build.
(cherry picked from commit 60b6c7458319ff01ecdd9d1650d526ac8f75e194)

14 years agoprog/tests: Fix MSVC build.
Vinson Lee [Tue, 13 Oct 2009 00:05:05 +0000 (18:05 -0600)]
prog/tests: Fix MSVC build.
(cherry picked from commit 96fd13c1a024e3b6c0b1c44394c67c772e52b9c9)

14 years agoprogs/tests: fix MSVC build.
Vinson Lee [Tue, 6 Oct 2009 22:02:47 +0000 (16:02 -0600)]
progs/tests: fix MSVC build.
(cherry picked from commit 9c778a90ea24f25437b68bb67856c81add61e261)

14 years agoprog/tests: Fix MSVC build.
Vinson Lee [Wed, 14 Oct 2009 13:43:18 +0000 (07:43 -0600)]
prog/tests: Fix MSVC build.
(cherry picked from commit ea862ec8ff4a52b30b822e737d93a49330be9e31)

14 years agor200: fix polygon stipple
Alex Deucher [Thu, 3 Dec 2009 16:20:40 +0000 (11:20 -0500)]
r200: fix polygon stipple

fixes fdo bug 25354

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
14 years agoscons: Add Mac OS to target platform list.
Vinson Lee [Tue, 8 Sep 2009 11:31:42 +0000 (12:31 +0100)]
scons: Add Mac OS to target platform list.
(cherry picked from commit 2c307c775018e5b9680de8022ddf0ce3b6f560be)

14 years agoprogs/vpglsl: Fix psiz-mul.glsl compilation error on Mac OS.
Vinson Lee [Fri, 20 Nov 2009 07:56:07 +0000 (23:56 -0800)]
progs/vpglsl: Fix psiz-mul.glsl compilation error on Mac OS.
(cherry picked from commit b98db7bf697c3ed6e6df303e9dd66f7ac31eb3e2)

14 years agoprogs/glsl: Fix trirast GLSL compilation errors on Mac OS.
Vinson Lee [Wed, 18 Nov 2009 22:02:20 +0000 (14:02 -0800)]
progs/glsl: Fix trirast GLSL compilation errors on Mac OS.
(cherry picked from commit 4b3ec2acf2cc2830b0907e4fb4db8bd1ff4a18e3)

14 years agoprogs/glsl: Fix noise GLSL compilation error on Mac OS.
Vinson Lee [Wed, 18 Nov 2009 21:50:49 +0000 (13:50 -0800)]
progs/glsl: Fix noise GLSL compilation error on Mac OS.
(cherry picked from commit 0d31990b4742eccdf6ae6a3b3e16c81cc863085d)

14 years agodemos/glsl: Add missing break statement to noise test.
Vinson Lee [Thu, 12 Nov 2009 01:39:58 +0000 (17:39 -0800)]
demos/glsl: Add missing break statement to noise test.
(cherry picked from commit 7dfea5c0722e9da101805c15b9dd26352816bca9)

14 years agoprogs/glsl: Fix multinoise GLSL compilation errors on Mac OS.
Vinson Lee [Wed, 18 Nov 2009 20:49:31 +0000 (12:49 -0800)]
progs/glsl: Fix multinoise GLSL compilation errors on Mac OS.
(cherry picked from commit d4dc2e30dada1be425e95ba270920db6eb210982)

14 years agoprogs/glsl: Add missing break statement in multinoise.c.
Vinson Lee [Fri, 13 Nov 2009 00:20:23 +0000 (16:20 -0800)]
progs/glsl: Add missing break statement in multinoise.c.
(cherry picked from commit 43080e40aa0d34423e10f1d50aad15289b2b9aec)

14 years agoprogs/glsl: Fix mandelbrot GLSL compilation error on Mac OS.
Vinson Lee [Wed, 18 Nov 2009 07:15:25 +0000 (23:15 -0800)]
progs/glsl: Fix mandelbrot GLSL compilation error on Mac OS.
(cherry picked from commit 04442841fb7e9138eb50ff692952ad7e8c3877d8)

14 years agoprogs/glsl: Include local headers before installed headers during compilation.
Vinson Lee [Mon, 21 Sep 2009 14:44:53 +0000 (08:44 -0600)]
progs/glsl: Include local headers before installed headers during compilation.

Fixes compilation errors on platforms with insufficient older installed
GL headers.
(cherry picked from commit d17af7d1e19e637e29db47bd8f6e3e579760c530)

14 years agoprogs/glsl: minor Makefile clean-ups
Brian Paul [Wed, 16 Sep 2009 21:49:33 +0000 (15:49 -0600)]
progs/glsl: minor Makefile clean-ups
(cherry picked from commit 4df2f7af5e9b2c00ead92fe0ae49ed8491aef1d0)

14 years agoprogs: Ignore Mac OS dSYM directories.
Vinson Lee [Sun, 15 Nov 2009 05:36:18 +0000 (21:36 -0800)]
progs: Ignore Mac OS dSYM directories.
(cherry picked from commit a420056750908f7c2f9a7c18b3ab20f04e49711d)

14 years agocell: added tex_usage param to xm_surface_buffer_create()
Brian Paul [Wed, 2 Dec 2009 16:31:26 +0000 (09:31 -0700)]
cell: added tex_usage param to xm_surface_buffer_create()

14 years agoprogs/demos: remove unused glFogCoordPointer_ext var
Brian Paul [Mon, 30 Nov 2009 16:54:27 +0000 (09:54 -0700)]
progs/demos: remove unused glFogCoordPointer_ext var

14 years agoSimplify hackery added to fix AIX build.
Tom Fogal [Tue, 24 Nov 2009 23:46:31 +0000 (16:46 -0700)]
Simplify hackery added to fix AIX build.

Borrow an idiom from the GNU build system which can handle `for'
loops over empty lists.

14 years agointel: Remove GL_NV_point_sprite from extension list
Ian Romanick [Tue, 24 Nov 2009 19:59:23 +0000 (11:59 -0800)]
intel: Remove GL_NV_point_sprite from extension list

i830 does not (and cannot!) support the any of the non-default
GL_POINT_SPRITE_R_MODE_NV settings.  i915 and i965 could, but
currently do not.  In both cases it would require mucking about with
the fragment shader.

14 years agomesa: set version string to 7.6.1-rc2
Ian Romanick [Tue, 1 Dec 2009 01:55:21 +0000 (17:55 -0800)]
mesa: set version string to 7.6.1-rc2

14 years agoi915: Actually put i915PointParameterfv in the driver function table. Duh.
Ian Romanick [Mon, 30 Nov 2009 20:43:12 +0000 (12:43 -0800)]
i915: Actually put i915PointParameterfv in the driver function table.  Duh.

14 years agoi915: Fallback bit define missed on previous commit
Ian Romanick [Mon, 30 Nov 2009 01:49:55 +0000 (17:49 -0800)]
i915: Fallback bit define missed on previous commit

14 years agoi915: Round point sizes instead of truncate.
Ian Romanick [Mon, 30 Nov 2009 01:43:38 +0000 (17:43 -0800)]
i915: Round point sizes instead of truncate.

14 years agoi915: Enable point sprite coordinate generation
Ian Romanick [Mon, 30 Nov 2009 01:40:02 +0000 (17:40 -0800)]
i915: Enable point sprite coordinate generation

Support still isn't completely correct, but it's better.  piglit
point-sprite now passes.  However, glean's pointSprite test fails.  In
that test the texture on the sprite is somehow inverted as though
GL_POINT_SPRITE_COORD_ORIGIN were set to GL_LOWER_LEFT.  i915 hardware
shouldn't be able to do that!

I believe there are also problems when not all texture units have
GL_COORD_REPLACE set.  The hardware enable seems to be all or nothing.

Fixes bug #25313.

14 years agoImprove implementation of GL_POINT_SPRITE_COORD_ORIGIN errors
Ian Romanick [Thu, 26 Nov 2009 00:31:28 +0000 (16:31 -0800)]
Improve implementation of GL_POINT_SPRITE_COORD_ORIGIN errors

This enum is only supported for OpenGL 2.0.  If a driver supports
OpenGL 1.4 and GL_ARB_point_sprite, using this enum should generate an
error.  This is important because, for example, i915 and i830 can
support GL_ARB_point_sprite, but they cannot support
GL_POINT_SPRITE_COORD_ORIGIN.

This commit just removes the check for NV_point_sprite, which is
completely wrong, and add some comments describing what the code
should do.  I don't see an easy way to check for version >= 2.0 from
inside Mesa.  Perhaps we should add an extension
GL_MESA_point_sprite_20 (like Intel's old GL_EXT_packed_pixels_12) to
indicate that this added bit of functionality is available.

Also note that glean's pointSprite test only checks for
GL_ARB_point_sprite before trying to use
GL_POINT_SPRITE_COORD_ORIGIN.  Naturally, that fails on
non-2.0 implementations (i.e., Mac OS X on GMA 950).

14 years agoradeon: fix context destroy needing lock for flushing.
Dave Airlie [Wed, 25 Nov 2009 10:23:22 +0000 (20:23 +1000)]
radeon: fix context destroy needing lock for flushing.

Thanks to Intel code which I've just stolen pretty much as usual.

This fixes fdo bug 22851 which is a dri1 regression since rewrite.

Tested by: fpiobaf (Fabio) on #radeon
Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agoi915: Initialize Length and Offset fields when mapping a buffer object
Ian Romanick [Tue, 24 Nov 2009 07:14:49 +0000 (23:14 -0800)]
i915: Initialize Length and Offset fields when mapping a buffer object

This fixes an assertion failure in _mesa_MapBufferARB.

Fixes bugzilla #25253.

14 years agoshaderutil: Fix detection of shaders
Ian Romanick [Tue, 24 Nov 2009 02:32:27 +0000 (18:32 -0800)]
shaderutil: Fix detection of shaders

Check for versions >= 2.0 (because some drivers return 3.0), and return
GL_FALSE if shaders are not detected.

14 years agoautoconf: Fix case for not having package
Jakob Bornecrantz [Thu, 15 Oct 2009 00:24:53 +0000 (01:24 +0100)]
autoconf: Fix case for not having package
(cherry picked from commit 5c4bdbd825934fe01330890d360b61caa06fdc8d)

14 years agoFix the DRI swrast driver for big endian platforms.
Michel Dänzer [Mon, 23 Nov 2009 18:33:59 +0000 (19:33 +0100)]
Fix the DRI swrast driver for big endian platforms.

Too bad I didn't realize earlier how easy this could be...

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=22767 .

14 years agodocs: document fixes for AIX
Brian Paul [Thu, 19 Nov 2009 16:35:01 +0000 (09:35 -0700)]
docs: document fixes for AIX

14 years agogl: added mangled glXGetProcAddressARB define
Tom Fogal [Thu, 19 Nov 2009 16:33:21 +0000 (09:33 -0700)]
gl: added mangled glXGetProcAddressARB define

Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agoprogs: Fix quoting issue with empty set of PROGRAM_DIRS.
Tom Fogal [Thu, 19 Nov 2009 03:19:29 +0000 (20:19 -0700)]
progs: Fix quoting issue with empty set of PROGRAM_DIRS.

Quotes are important to make sure the argument to test -n really
is the empty string, but that requires stringifying PROGRAM_DIRS.

Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agomesa: define 32bit byteswap for AIX.
Tom Fogal [Thu, 19 Nov 2009 16:18:48 +0000 (09:18 -0700)]
mesa: define 32bit byteswap for AIX.

Fixes `xlib' driver build on AIX.

Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agodocs: removed VC6/7 project files
Brian Paul [Thu, 19 Nov 2009 16:07:34 +0000 (09:07 -0700)]
docs: removed VC6/7 project files

14 years agodocs: update news file for 7.6.1 release
Brian Paul [Thu, 19 Nov 2009 16:07:17 +0000 (09:07 -0700)]
docs: update news file for 7.6.1 release

14 years agodocs: remove VC6/7 project file info
Brian Paul [Thu, 19 Nov 2009 16:01:48 +0000 (09:01 -0700)]
docs: remove VC6/7 project file info

14 years agomesa: omit VC6, VC7 project files from tarballs
Brian Paul [Thu, 19 Nov 2009 16:00:14 +0000 (09:00 -0700)]
mesa: omit VC6, VC7 project files from tarballs

Only VC8 project file is known to work.

14 years agowindows: remove old VC6 project files directory
Brian Paul [Thu, 19 Nov 2009 15:57:39 +0000 (08:57 -0700)]
windows: remove old VC6 project files directory

Very out of date, according to Karl Schultz.

14 years agor600: disable compressed texture support
Alex Deucher [Wed, 18 Nov 2009 16:51:20 +0000 (11:51 -0500)]
r600: disable compressed texture support

It's not implemented yet.  fixes fdo bug 24047

14 years agodocs: Add note about r600
Alex Deucher [Wed, 18 Nov 2009 16:32:55 +0000 (11:32 -0500)]
docs: Add note about r600

14 years agoRevert "radeon: Fix legacy bo not to reuse dma buffers before refcount is 1."
Alex Deucher [Wed, 18 Nov 2009 16:27:36 +0000 (11:27 -0500)]
Revert "radeon: Fix legacy bo not to reuse dma buffers before refcount is 1."

This reverts commit 284a7af274bc148f112bd0ebb40583923ee26b49.

This breaks kde desktop effects.  See fdo bug 24131

14 years agomesa: set version string to 7.6.1-rc1
Brian Paul [Wed, 18 Nov 2009 15:08:25 +0000 (08:08 -0700)]
mesa: set version string to 7.6.1-rc1

14 years agoxorg/st: fixup builds against later dpms headers.
Brian Paul [Wed, 18 Nov 2009 15:07:56 +0000 (08:07 -0700)]
xorg/st: fixup builds against later dpms headers.

(cherry picked from master, commit e9d6ab72be065becf7a077c33919d37faa8db92e)

14 years agodocs: i965 clipping fix
Brian Paul [Tue, 17 Nov 2009 22:53:27 +0000 (15:53 -0700)]
docs: i965 clipping fix

14 years agoi965: Fix Ironlake shadow comparisons.
Eric Anholt [Thu, 12 Nov 2009 17:08:50 +0000 (09:08 -0800)]
i965: Fix Ironlake shadow comparisons.

The cube map array index arg is always present.

14 years agoi965: Fix VBO last-valid-offset setup on Ironlake.
Eric Anholt [Wed, 11 Nov 2009 22:49:03 +0000 (14:49 -0800)]
i965: Fix VBO last-valid-offset setup on Ironlake.

Instead of doing math based on the (broken for VBO && offset != 0)
input->count number, just use the BO size.  Fixes assertion failure in ETQW.