mesa.git
14 years agoradeon: fix #25463
Maciej Cencora [Sat, 12 Dec 2009 01:02:53 +0000 (02:02 +0100)]
radeon: fix #25463

This is just a workaroung until we properly fix texture mapping in radeonSpanRenderStart

14 years agor300: fix depth textures
Maciej Cencora [Fri, 11 Dec 2009 22:56:47 +0000 (23:56 +0100)]
r300: fix depth textures

14 years agoMerge branch 'mesa_7_6_branch' into mesa_7_7_branch
Brian Paul [Fri, 11 Dec 2009 16:51:27 +0000 (09:51 -0700)]
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch

14 years agodocs: updated 7.6.1 relnotes with GLSL fixes
Brian Paul [Fri, 11 Dec 2009 16:41:34 +0000 (09:41 -0700)]
docs: updated 7.6.1 relnotes with GLSL fixes

14 years agomesa: remove unnecessary loop in _mesa_remove_output_reads()
Brian Paul [Fri, 11 Dec 2009 16:40:33 +0000 (09:40 -0700)]
mesa: remove unnecessary loop in _mesa_remove_output_reads()

14 years agoMerge branch 'mesa_7_6_branch' into mesa_7_7_branch
Brian Paul [Fri, 11 Dec 2009 16:22:00 +0000 (09:22 -0700)]
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch

14 years agomesa: check dst reg in _mesa_find_free_register()
Brian Paul [Fri, 11 Dec 2009 16:16:25 +0000 (09:16 -0700)]
mesa: check dst reg in _mesa_find_free_register()

If a register was only being used as a destination (as will happen when
generated condition-codes) we missed its use.  So we'd errantly return
a register index that was really in-use, not free.

Fixes bug 25579.

14 years agosparc: additional preprocessor test for SPARC 64-bit
Aurelien Jarno [Fri, 11 Dec 2009 15:46:54 +0000 (08:46 -0700)]
sparc: additional preprocessor test for SPARC 64-bit

14 years agoscons: Tweak MSVC release options.
José Fonseca [Fri, 11 Dec 2009 15:16:22 +0000 (15:16 +0000)]
scons: Tweak MSVC release options.

Enable whole program optimizations and fast math.

14 years agosvga: Add a missing dependency from the prescale state.
José Fonseca [Fri, 11 Dec 2009 14:14:03 +0000 (14:14 +0000)]
svga: Add a missing dependency from the prescale state.

Thanks for Keith to finding this.

Fixes Jedi Knight 2 menus.

14 years agosvga: Always pass SVGA3D_SURFACE_HINT_DYNAMIC.
José Fonseca [Fri, 11 Dec 2009 13:15:12 +0000 (13:15 +0000)]
svga: Always pass SVGA3D_SURFACE_HINT_DYNAMIC.

Since we're reusing buffers we're effectively transforming all
of them into dynamic buffers.

It would be nice to not cache long lived static buffers. But there
is no way to detect the long lived from short lived ones yet. A
good heuristic would be buffer size.

14 years agosvga: Keep tight control of texture handle ownership.
José Fonseca [Fri, 11 Dec 2009 12:29:02 +0000 (12:29 +0000)]
svga: Keep tight control of texture handle ownership.

The texture owns the surface handle. All derivatives need to keep
a reference to texture.

This fixes several assertions failures starting up Jedi Knight 2.

Should cause no change for DRM surface sharing -- reference count still
done as before there.

14 years agosvga: Fix mixed signed comparisons.
José Fonseca [Fri, 11 Dec 2009 12:09:02 +0000 (12:09 +0000)]
svga: Fix mixed signed comparisons.

14 years agoscons: Pass -fno-strict-aliasing to gcc.
José Fonseca [Fri, 11 Dec 2009 12:08:32 +0000 (12:08 +0000)]
scons: Pass -fno-strict-aliasing to gcc.

Strict aliasing tule violations were fixed on master, but
they're still causing problem in this branch, so disable this assumptions.

Do not apply this fix to master (revert when you merge).

14 years agoscons: Make it work with MinGW build of LLVM 2.6.
José Fonseca [Wed, 25 Nov 2009 18:06:12 +0000 (18:06 +0000)]
scons: Make it work with MinGW build of LLVM 2.6.

LLVM 2.5 is no longer supported on windows.

14 years agomesa: Initialize variable in MatchInstruction.
Vinson Lee [Fri, 11 Dec 2009 02:51:51 +0000 (18:51 -0800)]
mesa: Initialize variable in MatchInstruction.

14 years agomesa: Assign _mesa_lookup_parameter_index return value to GLint.
Vinson Lee [Fri, 11 Dec 2009 02:32:33 +0000 (18:32 -0800)]
mesa: Assign _mesa_lookup_parameter_index return value to GLint.

14 years agoi915: Add missing break statement in i915_debug_packet.
Vinson Lee [Fri, 11 Dec 2009 02:21:59 +0000 (18:21 -0800)]
i915: Add missing break statement in i915_debug_packet.

14 years agoglsl: Increase size of array in_slang_lookup_constant from 4 to 16.
Vinson Lee [Fri, 11 Dec 2009 01:50:35 +0000 (17:50 -0800)]
glsl: Increase size of array in_slang_lookup_constant from 4 to 16.

For some cases, _mesa_GetIntegerv reads up to params[15].

14 years agoprogs/samples: Byte swap individual members of struct _rawImageRec.
Vinson Lee [Thu, 10 Dec 2009 23:41:13 +0000 (15:41 -0800)]
progs/samples: Byte swap individual members of struct _rawImageRec.

14 years agointel: Remove ARGB internal_format == GL_RGB hacks
Ian Romanick [Wed, 9 Dec 2009 07:25:26 +0000 (23:25 -0800)]
intel: Remove ARGB internal_format == GL_RGB hacks

Now that XRGB is supported, we don't need to hack around cases of an RGBA
format buffer with an internal format of GL_RGB.

14 years agointel: Make RGB textures use XRGB8888
Ian Romanick [Wed, 9 Dec 2009 07:24:58 +0000 (23:24 -0800)]
intel: Make RGB textures use XRGB8888

14 years agointel: Make RGB renderbuffers use XRGB8888 like we do for RGB system buffers.
Ian Romanick [Wed, 9 Dec 2009 05:15:36 +0000 (21:15 -0800)]
intel: Make RGB renderbuffers use XRGB8888 like we do for RGB system buffers.

14 years agoi965: Fix handling of drawing to MESA_FORMAT_XRGB8888
Ian Romanick [Wed, 9 Dec 2009 05:13:05 +0000 (21:13 -0800)]
i965: Fix handling of drawing to MESA_FORMAT_XRGB8888

It turns out that 965 and friends cannot actually render to an xRGB
surfaces.  Instead, the surface has to be RGBA with writes to alpha
disabled and the blend function modified to always use 1.0 for
destination alpha.

14 years agointel: Use spantmp2 GL_BGR / GL_UNSIGNED_INT_8_8_8_8_REV for XRGB8888
Ian Romanick [Wed, 9 Dec 2009 05:12:18 +0000 (21:12 -0800)]
intel: Use spantmp2 GL_BGR / GL_UNSIGNED_INT_8_8_8_8_REV for XRGB8888

14 years agospantmp2: Add support for GL_BGR / GL_UNSIGNED_INT_8_8_8_8_REV
Ian Romanick [Wed, 9 Dec 2009 05:10:45 +0000 (21:10 -0800)]
spantmp2: Add support for GL_BGR / GL_UNSIGNED_INT_8_8_8_8_REV

This is really for MESA_FORMAT_XRGB8888.  Clearly spantmp2.h needs some
re-work.  Any volunteers?

14 years agointel: name in intel_create_renderbuffer was always 0, remove
Ian Romanick [Wed, 9 Dec 2009 01:03:20 +0000 (17:03 -0800)]
intel: name in intel_create_renderbuffer was always 0, remove

14 years agointel: Use texformat accessor to get bytes-per-pixel
Ian Romanick [Wed, 9 Dec 2009 00:06:13 +0000 (16:06 -0800)]
intel: Use texformat accessor to get bytes-per-pixel

14 years agointel: softwareBuffer in intel_alloc_renderbuffer_storage was always false, remove
Ian Romanick [Tue, 8 Dec 2009 23:51:18 +0000 (15:51 -0800)]
intel: softwareBuffer in intel_alloc_renderbuffer_storage was always false, remove

14 years agointel: Axe intel_renderbuffer::texformat
Ian Romanick [Tue, 8 Dec 2009 17:57:27 +0000 (09:57 -0800)]
intel: Axe intel_renderbuffer::texformat

Since the texformat branch merge, the value of intel_renderbuffer::texformat
is just a copy of gl_renderbuffer::Format.

14 years agointel: Flush the render/texture cache when finishing render to texture.
Eric Anholt [Wed, 9 Dec 2009 19:36:45 +0000 (11:36 -0800)]
intel: Flush the render/texture cache when finishing render to texture.

Back when we were flushing the entire batch at BindFramebuffer, the kernel
would notice the domain transition when someone went to texture from it and
flush for us.  We no longer do the batch flushing every time, so we get to
do aggressive flushing until we move batchbuffer handling to libdrm.

Fixes piglit fbo-flushing.  Bug #25377.  No noticeable performance loss
on cairo-gl (so this is better than batch flushing).

14 years agoprogs/util: Byte swap individual members of struct _rawImageRec.
Vinson Lee [Thu, 10 Dec 2009 21:24:15 +0000 (13:24 -0800)]
progs/util: Byte swap individual members of struct _rawImageRec.

14 years agoglsl: Fix array out-of-bounds access by _slang_lookup_constant.
Vinson Lee [Thu, 10 Dec 2009 20:37:10 +0000 (12:37 -0800)]
glsl: Fix array out-of-bounds access by _slang_lookup_constant.

14 years agomesa: Fix array out-of-bounds access by _mesa_TexParameteriv.
Vinson Lee [Thu, 10 Dec 2009 20:11:09 +0000 (12:11 -0800)]
mesa: Fix array out-of-bounds access by _mesa_TexParameteriv.

14 years agost/xorg: fix yv12 plus some cleanups in the upload code
Zack Rusin [Thu, 10 Dec 2009 18:01:53 +0000 (13:01 -0500)]
st/xorg: fix yv12 plus some cleanups in the upload code

14 years agost/xorg: enable yv12 for xv
Zack Rusin [Wed, 18 Nov 2009 17:06:32 +0000 (12:06 -0500)]
st/xorg: enable yv12 for xv

14 years agomesa: Fix SCons build.
Vinson Lee [Thu, 10 Dec 2009 06:34:07 +0000 (22:34 -0800)]
mesa: Fix SCons build.

Commit cd6b8dd9e82fedc55d033131fbc0f8ee950567c8 deleted
src/mesa/state_tracker/st_cb_get.c.

14 years agomesa: Fix array out-of-bounds access by _mesa_TexGend.
Vinson Lee [Thu, 10 Dec 2009 01:59:23 +0000 (17:59 -0800)]
mesa: Fix array out-of-bounds access by _mesa_TexGend.

_mesa_TexGend calls _mesa_TexGenfv, which uses the params argument
as an array.

14 years agomesa: Fix array out-of-bounds access by _mesa_Lighti.
Vinson Lee [Thu, 10 Dec 2009 01:34:50 +0000 (17:34 -0800)]
mesa: Fix array out-of-bounds access by _mesa_Lighti.

_mesa_Lighti calls _mesa_Lightiv, which uses the params argument
as an array.

14 years agomesa: Fix array out-of-bounds access by _mesa_Lightf.
Vinson Lee [Thu, 10 Dec 2009 01:11:30 +0000 (17:11 -0800)]
mesa: Fix array out-of-bounds access by _mesa_Lightf.

14 years agomesa: Fix array out-of-bounds access by _mesa_PointParameteri.
Vinson Lee [Wed, 9 Dec 2009 21:15:05 +0000 (13:15 -0800)]
mesa: Fix array out-of-bounds access by _mesa_PointParameteri.

_mesa_PointParameteri calls _mesa_PointParameterfv, which uses the
params argument as an array.

14 years agomesa: Fix array out-of-bounds access by _mesa_PointParameterf.
Vinson Lee [Wed, 9 Dec 2009 21:00:22 +0000 (13:00 -0800)]
mesa: Fix array out-of-bounds access by _mesa_PointParameterf.

_mesa_PointParameterf calls _mesa_PointParameterfv, which uses the
params argument as an array.

14 years agomesa: Fix array out-of-bounds access by _mesa_LightModelf.
Vinson Lee [Wed, 9 Dec 2009 20:43:28 +0000 (12:43 -0800)]
mesa: Fix array out-of-bounds access by _mesa_LightModelf.

_mesa_LightModelf calls _mesa_LightModelfv, which uses the
params argument as an array.

14 years agoglsl: Remove unused member x from struct slang_operation.
Vinson Lee [Wed, 9 Dec 2009 19:26:24 +0000 (11:26 -0800)]
glsl: Remove unused member x from struct slang_operation.

14 years agomesa: fix baseLevel >= MAX_TEXTURE_LEVELS test
Brian Paul [Wed, 9 Dec 2009 15:30:01 +0000 (08:30 -0700)]
mesa: fix baseLevel >= MAX_TEXTURE_LEVELS test

This fixes invalid array indexing when baseLevel == MAX_TEXTURE_LEVELS.
See bug 25528.

14 years agor600: fix state size prediction after dc0777d3
Andre Maasikas [Wed, 9 Dec 2009 08:51:52 +0000 (10:51 +0200)]
r600: fix state size prediction after dc0777d3

14 years agovmware/xorg: Properly detect overlay support
Jakob Bornecrantz [Tue, 8 Dec 2009 20:05:30 +0000 (21:05 +0100)]
vmware/xorg: Properly detect overlay support

14 years agovmware/core: Update vmwgfx_drm.h
Jakob Bornecrantz [Tue, 8 Dec 2009 20:03:29 +0000 (21:03 +0100)]
vmware/core: Update vmwgfx_drm.h

14 years agometa: Bind texture to unit 0 for mipmap generation
Ian Romanick [Wed, 9 Dec 2009 19:03:49 +0000 (11:03 -0800)]
meta: Bind texture to unit 0 for mipmap generation

If the active texture unit on entry to mipmap generation is not zero, bind the
texture to unit zero.

Fixes bug #24219.

14 years agomesa: Move OES_read_format support from drivers into the core.
Eric Anholt [Wed, 9 Dec 2009 18:08:07 +0000 (10:08 -0800)]
mesa: Move OES_read_format support from drivers into the core.

The assertion is that the correct read type to be using is the native
type of the underlying read renderbuffer.  For some fallback paths, this
may be worse than GL_RGBA/GL_UNSIGNED_BYTE for reads today, but it gets
all drivers the expected GL_BGRA/GL_UNSIGNED_BYTE for ARGB8888 or
GL_BGR//GL_UNSIGNED_SHORT_5_6_5_REV for rgb565 with no work.

This fixes the intel (and other) DRI drivers to report read formats that
should hit blit PBO readpixels paths.

14 years agomesa: Fix array out-of-bounds access by _mesa_LightModeli.
Vinson Lee [Wed, 9 Dec 2009 02:26:05 +0000 (18:26 -0800)]
mesa: Fix array out-of-bounds access by _mesa_LightModeli.

_mesa_LightModeli calls _mesa_LightModeliv, which uses the
params argument as an array.

14 years agomesa: Fix array out-of-bounds access by _mesa_Fogf.
Vinson Lee [Wed, 9 Dec 2009 01:51:07 +0000 (17:51 -0800)]
mesa: Fix array out-of-bounds access by _mesa_Fogf.

_mesa_Fogf calls _mesa_Fogfv, which uses the params argument
as an array.

14 years agomesa: Fix array out-of-bounds access by _mesa_TexParameteri.
Vinson Lee [Wed, 9 Dec 2009 01:25:05 +0000 (17:25 -0800)]
mesa: Fix array out-of-bounds access by _mesa_TexParameteri.

_mesa_TexParameteri calls set_tex_parameteri, which uses the
params argument as an array.

14 years agoi965: Enable the accelerated ReadPixels path on gen4 along with pre-gen4.
Eric Anholt [Wed, 9 Dec 2009 00:15:07 +0000 (16:15 -0800)]
i965: Enable the accelerated ReadPixels path on gen4 along with pre-gen4.

Passes piglit pbo-read-argb8888, and doesn't otherwise regress quick.tests.

14 years agomesa: Fix array out-of-bounds access by _mesa_Fogi.
Vinson Lee [Wed, 9 Dec 2009 00:04:33 +0000 (16:04 -0800)]
mesa: Fix array out-of-bounds access by _mesa_Fogi.

_mesa_Fogi calls _mesa_Fogfv, which uses the params argument
as an array.

14 years agomesa: Fix array out-of-bounds access by _mesa_TexParameteri.
Vinson Lee [Tue, 8 Dec 2009 23:42:13 +0000 (15:42 -0800)]
mesa: Fix array out-of-bounds access by _mesa_TexParameteri.

_mesa_TexParameteri calls set_tex_parameterf, which uses the
params argument as an array.

14 years agomesa: Fix array out-of-bounds access by _mesa_TexParameterfv.
Vinson Lee [Tue, 8 Dec 2009 22:31:38 +0000 (14:31 -0800)]
mesa: Fix array out-of-bounds access by _mesa_TexParameterfv.

_mesa_TexParameterfv calls set_tex_parameteri, which uses the
params argument as an array.

14 years agovbo: fix array index out of bounds error, and fix evaluator priorities
Brian Paul [Tue, 8 Dec 2009 22:03:15 +0000 (15:03 -0700)]
vbo: fix array index out of bounds error, and fix evaluator priorities

Fixes bug 25525.
Plus, the GL_NV_vertex_program evaluators alias and override the
convential evaluator maps, so set their state after the conventional
maps.

14 years agoi915g: Fix memory leak when pci id is unknown.
Vinson Lee [Tue, 8 Dec 2009 08:43:38 +0000 (00:43 -0800)]
i915g: Fix memory leak when pci id is unknown.

14 years agoi915g: Add missing break statement in i915_debug_packet.
Vinson Lee [Tue, 8 Dec 2009 08:37:35 +0000 (00:37 -0800)]
i915g: Add missing break statement in i915_debug_packet.

14 years agorbug: Initialize variable in rbug_get_message.
Vinson Lee [Tue, 8 Dec 2009 08:26:37 +0000 (00:26 -0800)]
rbug: Initialize variable in rbug_get_message.

Silences uninitialized variable warning.

14 years agor600: add support for TXB instruction
Andre Maasikas [Thu, 3 Dec 2009 10:26:44 +0000 (12:26 +0200)]
r600: add support for TXB instruction

makes testing other things easier - does not hang the card
TODO: enable TEX dependency tracking in vertex programs

14 years agor600: reorder state for render_target and blend
Andre Maasikas [Wed, 4 Nov 2009 08:00:47 +0000 (10:00 +0200)]
r600: reorder state for render_target and blend

First time around render targets are not enabled yet (done in
r700SendRenderTargetState) so blend state is not emitted for any targets.
Affects first glClear in some mesa tests.
As a quick fix reorder state emit so that target is set first

14 years agollvmpipe: Initialize variables in emit_instruction.
Vinson Lee [Tue, 8 Dec 2009 03:04:07 +0000 (19:04 -0800)]
llvmpipe: Initialize variables in emit_instruction.

14 years agoprogs/test: Initialize variable in prog_parameter.
Vinson Lee [Tue, 8 Dec 2009 02:40:37 +0000 (18:40 -0800)]
progs/test: Initialize variable in prog_parameter.

Silences uninitialized variable compiler warning.

14 years agomesa: set version string to 7.6.1-rc3
Ian Romanick [Tue, 8 Dec 2009 00:59:59 +0000 (16:59 -0800)]
mesa: set version string to 7.6.1-rc3

14 years agoprogs/demos: Fix memory leak in projtex.c.
Vinson Lee [Mon, 7 Dec 2009 20:31:08 +0000 (12:31 -0800)]
progs/demos: Fix memory leak in projtex.c.

14 years agost/egl: Fix memory leak in egl_tracker.c.
Vinson Lee [Sat, 21 Nov 2009 00:33:25 +0000 (16:33 -0800)]
st/egl: Fix memory leak in egl_tracker.c.
(cherry picked from commit 052b127842af3372fd768eae8e29b240a696a12a)

14 years agodri: Fix potential null pointer dereference in driBindContext.
Vinson Lee [Sun, 29 Nov 2009 04:22:31 +0000 (23:22 -0500)]
dri: Fix potential null pointer dereference in driBindContext.
(cherry picked from commit 919898e92fa23ff71a59d86a46ff0886a6f34e4d)

14 years agodri: Fix potential null pointer deference in dri_put_drawable.
Vinson Lee [Tue, 24 Nov 2009 05:57:55 +0000 (00:57 -0500)]
dri: Fix potential null pointer deference in dri_put_drawable.
(cherry picked from commit 364070b1f2b08d43fb205ec198894a35bec6b2f3)

14 years agoglx: Prevent potential null pointer deference in driCreateContext.
Vinson Lee [Mon, 23 Nov 2009 06:30:32 +0000 (01:30 -0500)]
glx: Prevent potential null pointer deference in driCreateContext.
(cherry picked from commit 4b0b250aae6ae7d48cd24f9d91d05ab58086c4b2)

14 years agoprogs/tests: Add tests to Makefile.
Vinson Lee [Fri, 9 Oct 2009 13:24:04 +0000 (07:24 -0600)]
progs/tests: Add tests to Makefile.
(cherry picked from commit 76d2ec3a0a047a65ffca70f53848241a3225dad3)

14 years agodraw: Initialize variable in draw_pt.c.
Vinson Lee [Sat, 21 Nov 2009 00:03:48 +0000 (16:03 -0800)]
draw: Initialize variable in draw_pt.c.
(cherry picked from commit ea98e9820d7117f7a187f355445796b1ef5d9e0c)

14 years agomesa: Fix array out-of-bounds access by _mesa_TexGenf.
Vinson Lee [Sun, 29 Nov 2009 05:50:48 +0000 (00:50 -0500)]
mesa: Fix array out-of-bounds access by _mesa_TexGenf.

_mesa_TexGenf calls _mesa_TexGenfv, which uses the params argument
as an array.
(cherry picked from commit ca5a7aadb4361e7d053aea8687372cd44cbd8795)

14 years agomesa: Fix array out-of-bounds access by _mesa_TexGeni.
Vinson Lee [Sun, 29 Nov 2009 04:47:23 +0000 (23:47 -0500)]
mesa: Fix array out-of-bounds access by _mesa_TexGeni.

_mesa_TexGeni calls _mesa_TexGeniv, which uses the params argument
as an array.
(cherry picked from commit d55fb7c835b56951f05a058083e7eda264ba192e)

14 years agomesa: Fix array out-of-bounds access by _mesa_TexParameterf.
Vinson Lee [Mon, 30 Nov 2009 02:17:44 +0000 (21:17 -0500)]
mesa: Fix array out-of-bounds access by _mesa_TexParameterf.

_mesa_TexParameterf calls set_tex_parameterf, which uses the params
argument as an array.
(cherry picked from commit 270d36da146b899d39e08f830fe34b63833a3731)

14 years agomesa: Fix array out-of-bounds access by _mesa_TexParameterf.
Vinson Lee [Sun, 29 Nov 2009 23:18:23 +0000 (18:18 -0500)]
mesa: Fix array out-of-bounds access by _mesa_TexParameterf.

_mesa_TexParameterf calls set_tex_parameteri, which uses the params
argument as an array.
(cherry picked from commit a201dfb6bf28b89d6f511c2ec9ae0d81ef18511d)

14 years agoprogs/samples: Fix memory leak if malloc fails in rgbtoppm.c.
Vinson Lee [Sat, 5 Dec 2009 09:43:29 +0000 (01:43 -0800)]
progs/samples: Fix memory leak if malloc fails in rgbtoppm.c.

14 years agoprogs/samples: Fix memory leak if fopen fails in rgbtoppm.c.
Vinson Lee [Sat, 5 Dec 2009 09:38:14 +0000 (01:38 -0800)]
progs/samples: Fix memory leak if fopen fails in rgbtoppm.c.

14 years agoprogs/samples: Add rgbtoppm to Makefile.
Vinson Lee [Sat, 5 Dec 2009 09:28:47 +0000 (01:28 -0800)]
progs/samples: Add rgbtoppm to Makefile.

14 years agoprogs/tests: Removed unused variable from texdown.c.
Vinson Lee [Sat, 5 Dec 2009 09:22:34 +0000 (01:22 -0800)]
progs/tests: Removed unused variable from texdown.c.

14 years agoprogs/vpglsl: Assign glGetUniformLocationARB return value to GLint.
Vinson Lee [Sat, 5 Dec 2009 09:11:26 +0000 (01:11 -0800)]
progs/vpglsl: Assign glGetUniformLocationARB return value to GLint.

The return type of glGetUniformLocationARB is GLint, not GLuint.

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 agovmware/xorg: Also stop ports on close
Jakob Bornecrantz [Fri, 4 Dec 2009 15:44:18 +0000 (16:44 +0100)]
vmware/xorg: Also stop ports on close

14 years agovmware/xorg: Stop video ports on leave vt
Jakob Bornecrantz [Fri, 4 Dec 2009 15:25:59 +0000 (16:25 +0100)]
vmware/xorg: Stop video ports on leave vt

14 years agost/xorg: Add enter/leave vt hooks for winsys
Jakob Bornecrantz [Fri, 4 Dec 2009 15:22:48 +0000 (16:22 +0100)]
st/xorg: Add enter/leave vt hooks for winsys

14 years agost/xorg: Fix leave enter vt cycle in crtc code
Jakob Bornecrantz [Fri, 4 Dec 2009 15:05:03 +0000 (16:05 +0100)]
st/xorg: Fix leave enter vt cycle in crtc code

14 years agost/xorg: New libkms destroy api
Jakob Bornecrantz [Fri, 4 Dec 2009 15:13:57 +0000 (16:13 +0100)]
st/xorg: New libkms destroy api

14 years agovmware/xorg: Fix SCons build.
Michel Dänzer [Tue, 8 Dec 2009 10:45:19 +0000 (11:45 +0100)]
vmware/xorg: Fix SCons build.

Not sure how vmw_screen.c could build at all though...

14 years agovmware/xorg: Avoid warning about HAVE_STDINT_H being redefined.
Michel Dänzer [Tue, 8 Dec 2009 10:43:22 +0000 (11:43 +0100)]
vmware/xorg: Avoid warning about HAVE_STDINT_H being redefined.

14 years agoMerge branch 'mesa_7_6_branch' into mesa_7_7_branch
Andre Maasikas [Tue, 8 Dec 2009 08:16:14 +0000 (10:16 +0200)]
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch

14 years agomesa: set version string to 7.7-rc1
Ian Romanick [Tue, 8 Dec 2009 01:18:56 +0000 (17:18 -0800)]
mesa: set version string to 7.7-rc1

Also modify the Makefile to use the correct version for the tarballs.

14 years agoMerge branch 'mesa_7_6_branch' into mesa_7_7_branch
Ian Romanick [Tue, 8 Dec 2009 01:16:10 +0000 (17:16 -0800)]
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch

Conflicts:
progs/demos/projtex.c
progs/xdemos/glxinfo.c
src/mesa/main/version.h

To fix the confilicts in projtex.c and glxinfo.c I just took the code from
mesa_7_6_branch.  The conflicts seem to have occured from cherry-picks from
mesa_7_7_branch to mesa_7_6_branch followed by commmits just to
mesa_7_6_branch.

14 years agoRevert "intel: Make RGB renderbuffers use XRGB8888 like we do for RGB system buffers."
Ian Romanick [Tue, 8 Dec 2009 01:06:07 +0000 (17:06 -0800)]
Revert "intel: Make RGB renderbuffers use XRGB8888 like we do for RGB system buffers."

This reverts commit 4598942b1b88a2a7d5af7febae7e79eedf00e385.

XRGB8888 doesn't work as intended.  Revert this for now, and we'll revisit it
for 7.8 or something.

14 years agoradeon: fix cases when only first image where put directly into miptree.
Maciej Cencora [Mon, 7 Dec 2009 21:24:41 +0000 (22:24 +0100)]
radeon: fix cases when only first image where put directly into miptree.

Make sure that minimal width, height and depth of texture image is 1.

14 years agoradeon: fix image migration for small compressed textures
Maciej Cencora [Mon, 7 Dec 2009 21:22:57 +0000 (22:22 +0100)]
radeon: fix image migration for small compressed textures

memcpy would give incorrect results if src rowstride != dst rowstride