mesa.git
14 years agomesa: set version string to 7.8.1
Ian Romanick [Mon, 5 Apr 2010 16:49:08 +0000 (09:49 -0700)]
mesa: set version string to 7.8.1

14 years agoInitial 7.8.1 release notes
Ian Romanick [Mon, 5 Apr 2010 16:12:33 +0000 (09:12 -0700)]
Initial 7.8.1 release notes

14 years agomesa: update_arrays() depends on program state.
Henri Verbeet [Sun, 4 Apr 2010 17:24:46 +0000 (10:24 -0700)]
mesa: update_arrays() depends on program state.

It uses ctx->VertexProgram._Current.

Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agoUpdate to final names from GLX_INTEL_swap_event spec
Ian Romanick [Mon, 5 Apr 2010 06:06:01 +0000 (23:06 -0700)]
Update to final names from GLX_INTEL_swap_event spec

Fixes bug #27454.

14 years agogl: updated glxext.h to version 27
Ian Romanick [Sun, 4 Apr 2010 23:53:41 +0000 (16:53 -0700)]
gl: updated glxext.h to version 27

14 years agoutil: Use GCC atomic bultins on GCC 4.1 and higher only.
Vinson Lee [Sat, 3 Apr 2010 19:14:21 +0000 (12:14 -0700)]
util: Use GCC atomic bultins on GCC 4.1 and higher only.

14 years agoxdemos: Build object files first
Jeremy Huddleston [Thu, 1 Apr 2010 19:28:41 +0000 (12:28 -0700)]
xdemos: Build object files first

This helps debugging on darwin.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
14 years agoglx: Fix compilation errors on non-GLX_DIRECT_RENDERING builds.
Vinson Lee [Fri, 2 Apr 2010 07:12:59 +0000 (00:12 -0700)]
glx: Fix compilation errors on non-GLX_DIRECT_RENDERING builds.

Add ifdef guards around variables of types defined only for
GLX_DIRECT_RENDERING.

14 years agost/vega: Do not depend on libm.
Chia-I Wu [Fri, 2 Apr 2010 02:27:57 +0000 (10:27 +0800)]
st/vega: Do not depend on libm.

This fixes the "no rule to make target -lm" error on darwin, reported by
Jeremy Huddleston.

14 years agoGLX/DRI2: pass GLX drawable ID to dri2InvalidateBuffers
Jesse Barnes [Fri, 2 Apr 2010 00:26:04 +0000 (17:26 -0700)]
GLX/DRI2: pass GLX drawable ID to dri2InvalidateBuffers

The IDs will be the same in the case where an X window is used directly
as a GLX drawable, but will fail if a new GLX drawable is created
explicitly, as with glxgears_fbconfig.

Fixes fdo bug #27190.

14 years agoRevert accidental commits from the xquartz tree
Jeremy Huddleston [Fri, 2 Apr 2010 00:00:22 +0000 (17:00 -0700)]
Revert accidental commits from the xquartz tree

This reverts commit 9aadc793f3db64cefa0b08f18abad424a659dacc.
This reverts commit 69ea4e7718efb60b6b0d795a355cebd6712ceac1.
This reverts commit dbe8b013936d977ec63d6607bfd2fc6772d29787.
This reverts commit 23215ef4d60a86d9f3b3fdc08e3fdadc59e98890.
This reverts commit 9495e3703062d1ddaf3161f4efc23f0b51284d9b.
This reverts commit 0594cf70883b64692ba617d85f4f9b4e636e5c2b.
This reverts commit 86a7978d37393ee34f876569ac06ffdb8d7289ae.
This reverts commit 437902ce978cde9a0e1aa260f12dc232a8501c42.

14 years agoapple: Don't build gallium
Jeremy Huddleston [Thu, 1 Apr 2010 19:14:08 +0000 (12:14 -0700)]
apple: Don't build gallium

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
14 years agoapple: Use mesa gl.h rather than generating one.
Jeremy Huddleston [Sat, 2 Jan 2010 05:03:53 +0000 (00:03 -0500)]
apple: Use mesa gl.h rather than generating one.

Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
14 years agoapple: Integrate our libGL into the existing build system better
Jeremy Huddleston [Thu, 1 Apr 2010 18:18:42 +0000 (11:18 -0700)]
apple: Integrate our libGL into the existing build system better

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
14 years agoapple: Change ifdefs for DRI to be DRI && !APPLE
Jeremy Huddleston [Thu, 1 Apr 2010 18:17:04 +0000 (11:17 -0700)]
apple: Change ifdefs for DRI to be DRI && !APPLE

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
14 years agoapple: Remove duplicate headers that already exist in mesa.
Jeremy Huddleston [Thu, 24 Dec 2009 17:51:17 +0000 (09:51 -0800)]
apple: Remove duplicate headers that already exist in mesa.

Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
14 years agoapple: Initial import of libGL for OSX from AppleSGLX svn repository.
Jeremy Huddleston [Thu, 1 Apr 2010 18:01:31 +0000 (11:01 -0700)]
apple: Initial import of libGL for OSX from AppleSGLX svn repository.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
14 years agoxdemos: Build object files first
Jeremy Huddleston [Thu, 1 Apr 2010 19:28:41 +0000 (12:28 -0700)]
xdemos: Build object files first

This helps debugging on darwin.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
14 years agoxdemos: Fix a build failure for non-autoconf configs
Jeremy Huddleston [Thu, 1 Apr 2010 18:51:15 +0000 (11:51 -0700)]
xdemos: Fix a build failure for non-autoconf configs

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
14 years agoglx: Fix compilation errors on non-GLX_DIRECT_RENDERING builds.
Vinson Lee [Thu, 1 Apr 2010 07:10:28 +0000 (00:10 -0700)]
glx: Fix compilation errors on non-GLX_DIRECT_RENDERING builds.

driContext field for __GLXcontextRec struct is only defined if
GLX_DIRECT_RENDERING is set.

14 years agost/mesa: use BITFIELD64_BIT to access shader OutputsWritten in more places
Ben Skeggs [Wed, 31 Mar 2010 05:44:25 +0000 (15:44 +1000)]
st/mesa: use BITFIELD64_BIT to access shader OutputsWritten in more places

14 years agoglx/dri2: Fix debug build with old dri2proto.
Michel Dänzer [Tue, 30 Mar 2010 09:50:13 +0000 (11:50 +0200)]
glx/dri2: Fix debug build with old dri2proto.

Apparently the higher compiler optimization level in non-debug builds was
eliminating the unused functions referencing the unresolved DRI2 symbols...

14 years agodocs: fix 7.7.1 release date
Brian Paul [Mon, 29 Mar 2010 18:01:28 +0000 (12:01 -0600)]
docs: fix 7.7.1 release date

(cherry picked from commit e6f5ca0fa3bff975f2acb3a825d77f095bc9f43e)

14 years agomesa: Add 7.8 release MD5 sums
Ian Romanick [Sun, 28 Mar 2010 23:35:56 +0000 (16:35 -0700)]
mesa: Add 7.8 release MD5 sums

14 years agointel: Bump intel driver date to reflect status as 2010Q1 release
Ian Romanick [Sun, 28 Mar 2010 23:33:53 +0000 (16:33 -0700)]
intel: Bump intel driver date to reflect status as 2010Q1 release

14 years agomesa: set version string to 7.8
Ian Romanick [Sun, 28 Mar 2010 23:31:08 +0000 (16:31 -0700)]
mesa: set version string to 7.8

Also set the correct release date.

14 years agomesa: Add 7.7.1 release MD5 sums
Ian Romanick [Sun, 28 Mar 2010 23:25:47 +0000 (16:25 -0700)]
mesa: Add 7.7.1 release MD5 sums
(cherry picked from commit 0c88e340499c961cc7a06107a727710a67e280ed)

14 years agomesa: set version string to 7.7.1
Ian Romanick [Sun, 28 Mar 2010 23:22:44 +0000 (16:22 -0700)]
mesa: set version string to 7.7.1

Also set the correct release date.
(cherry picked from commit 663642b435af2f8ab4b16360783eb367f42486c3)

14 years agoprogs/tests: Remove duplicate texcompress2 in SConscript.
Vinson Lee [Sat, 27 Mar 2010 21:40:41 +0000 (14:40 -0700)]
progs/tests: Remove duplicate texcompress2 in SConscript.

14 years agoi965g: Add brw_winsys_debug.c to SCons build.
Vinson Lee [Sat, 27 Mar 2010 21:25:03 +0000 (14:25 -0700)]
i965g: Add brw_winsys_debug.c to SCons build.

14 years agoidentity: Add id_drm.c to SCons build.
Vinson Lee [Sat, 27 Mar 2010 17:07:14 +0000 (10:07 -0700)]
identity: Add id_drm.c to SCons build.

This was missed in commit f7cbaae13d67c55abe81ac230de37f564365099f.
(cherry picked from commit 02ee7c29502966dffa44243bfc8c20c15907b880)

14 years agomesa: move/update hash function comments
Brian Paul [Sat, 27 Mar 2010 14:59:17 +0000 (08:59 -0600)]
mesa: move/update hash function comments

(cherry picked from commit 535742d75f0096b22d1b8ff203ae561167af18f7)

14 years agomesa: fix deadlock in _mesa_HashFindFreeKeyBlock()
Brian Paul [Sat, 27 Mar 2010 14:58:59 +0000 (08:58 -0600)]
mesa: fix deadlock in _mesa_HashFindFreeKeyBlock()

Fixes fd.o bug 27340.
(cherry picked from commit 8fe3b3f66ae57a1a6eca7f6dcb0455e14ad92075)

14 years agodri/swrast: Fix frontbuffer rendering.
Michel Dänzer [Fri, 26 Mar 2010 15:29:59 +0000 (16:29 +0100)]
dri/swrast: Fix frontbuffer rendering.

Was broken since the endianness fixes.
(cherry picked from commit 4cf14fa80bda5f4ea65bef3a64e748e064d0bde1)

14 years agodri/swrast: Fix missed conversion of one pixel pointer increment.
Michel Dänzer [Fri, 26 Mar 2010 15:29:59 +0000 (16:29 +0100)]
dri/swrast: Fix missed conversion of one pixel pointer increment.

This probably broke the swrast DRI driver when running X in depth 16.
(cherry picked from commit 6ec259eb17dfbb74972b8cffb4e02a9dbab288cc)

14 years agoi965: Fix readpixels from ReadBuffer != DrawBuffer.
Eric Anholt [Tue, 16 Mar 2010 20:23:23 +0000 (13:23 -0700)]
i965: Fix readpixels from ReadBuffer != DrawBuffer.

Fixes piglit fbo-readdrawpix.
(cherry picked from commit 5782b2a968bb979b651e49bb5fc4162faa842050)

14 years agoi965: Fix inversion for glCopyPixels to/from FBOs.
Eric Anholt [Wed, 24 Mar 2010 21:28:45 +0000 (14:28 -0700)]
i965: Fix inversion for glCopyPixels to/from FBOs.

fixes piglit fbo-copypix.
(cherry picked from commit a589da14dee0c2a32e6e529f1a390b01a3ee4001)

14 years agointel: Rely on allocated region pitch for the miptree pitch.
Eric Anholt [Tue, 16 Mar 2010 23:20:03 +0000 (16:20 -0700)]
intel: Rely on allocated region pitch for the miptree pitch.

Bug #26966: 945 miptree pitch disagreement with libdrm.
(cherry picked from commit da011faf48155a5c02ebc1fe1fa20a4f54b8c657)

14 years agointel: Remove extra tiling setting after allocating a tiled region.
Eric Anholt [Tue, 16 Mar 2010 23:05:53 +0000 (16:05 -0700)]
intel: Remove extra tiling setting after allocating a tiled region.
(cherry picked from commit 32f143b4327521a058dc05f0ab9087a5696b9618)

14 years agointel: Respect src pitch in _mesa_copy_rect().
Eric Anholt [Wed, 17 Mar 2010 17:10:37 +0000 (10:10 -0700)]
intel: Respect src pitch in _mesa_copy_rect().

If a non-zero src_y was used, this would break piglit
depth-level-clamp.
(cherry picked from commit e1e48ea15c1fe448f0b69e086b66c1123dc98bb7)

14 years agoRegenerate gl_mangle.h
Tom Fogal [Thu, 25 Mar 2010 22:48:59 +0000 (16:48 -0600)]
Regenerate gl_mangle.h

14 years agoglapi: return int = 0 from NoOpGeneric()
Brian Paul [Thu, 25 Mar 2010 22:03:13 +0000 (16:03 -0600)]
glapi: return int = 0 from NoOpGeneric()

If a GL function is called w/out a current rendering context, this stub
gets called.  It should return 0 so that non-void-valued functions return
0/NULL instead of a random number.

14 years agoglslcompiler: Fix build.
Vinson Lee [Thu, 25 Mar 2010 19:58:36 +0000 (12:58 -0700)]
glslcompiler: Fix build.

14 years agor300: report correct state atom size
Maciej Cencora [Sun, 21 Mar 2010 11:43:38 +0000 (12:43 +0100)]
r300: report correct state atom size

Spotted by Pauli Nieminen

14 years agor300: fix off by one
Maciej Cencora [Sun, 21 Mar 2010 11:12:05 +0000 (12:12 +0100)]
r300: fix off by one

R300_PVS_MAX_CONST_ADDR field holds highest const addr, not
const count.

Fixes missing models and others rendering errors for vertex
program using 256 params.

14 years agor300: fix vertex programs with big number of params (>255) under KMS
Maciej Cencora [Sun, 21 Mar 2010 11:10:06 +0000 (12:10 +0100)]
r300: fix vertex programs with big number of params (>255) under KMS

UMS will probably require some kernel work

14 years agor300: fix wpos/fog handling
Maciej Cencora [Sun, 21 Mar 2010 10:34:19 +0000 (11:34 +0100)]
r300: fix wpos/fog handling

It may happen that the vertex attribute we were going to stuff
the wpos/fog attrs in was already written by vertex program.
In such cases we need to remove instruction accessing these
attributes, so they don't overwrite the wpos/fog related
instructions.

This fixes non-textured models in many wine games.

14 years agor300: clean fog_attr/wpos_attr if code accessing these attributes has been removed...
Maciej Cencora [Sun, 21 Mar 2010 10:19:02 +0000 (11:19 +0100)]
r300: clean fog_attr/wpos_attr if code accessing these attributes has been removed FP during compilation

14 years agoi965: Stop abusing ctx->NewState flags for storing driver internal changes.
Eric Anholt [Wed, 24 Mar 2010 03:52:06 +0000 (20:52 -0700)]
i965: Stop abusing ctx->NewState flags for storing driver internal changes.

We're still abusing the flags by putting them where our driver stores
ctx->NewState changes.  Making them into more restricted state change
flags would be a project for later.

Fixes a failure where calling intel_draw_buffer() too often would trip
up Mesa assertions about when Mesa state could get changed, when it hadn't.

Bug #27034.

14 years agodocs: update docs with 7.7.1 and 7.8 release info
Brian Paul [Tue, 23 Mar 2010 15:23:26 +0000 (09:23 -0600)]
docs: update docs with 7.7.1 and 7.8 release info

14 years agosoftpipe: comments, re-formatting, etc
Brian Paul [Tue, 23 Mar 2010 15:08:35 +0000 (09:08 -0600)]
softpipe: comments, re-formatting, etc

14 years agosoftpipe: add special cases for all Z compare modes for 16-bit Z buffer
Brian Paul [Tue, 23 Mar 2010 15:00:19 +0000 (09:00 -0600)]
softpipe: add special cases for all Z compare modes for 16-bit Z buffer

We had fast paths for PIPE_FUNC_LESS and LEQUAL before.  To satisfy
OpenGL invariance rules, all depth compare modes should produce the
same fragment Z values.

Fixes progs/demos/singlebuffer.c

14 years agost/glx: better format selection in xmesa_choose_z_stencil_format()
Brian Paul [Tue, 23 Mar 2010 14:58:09 +0000 (08:58 -0600)]
st/glx: better format selection in xmesa_choose_z_stencil_format()

This is a back-port of commit ef2664da6c4db1b52ef351641e3ee949b87f9c7b
from master.

14 years agoAdd missing EGL files to the tarballs.
Chia-I Wu [Tue, 23 Mar 2010 06:37:24 +0000 (14:37 +0800)]
Add missing EGL files to the tarballs.

Add the Makefile of Gallium EGL drivers and demos using EGL to the
tarballs.

14 years agoglx: Suppress BadDrawable from DRI2CopyRegion
Kristian Høgsberg [Tue, 23 Mar 2010 01:57:26 +0000 (21:57 -0400)]
glx: Suppress BadDrawable from DRI2CopyRegion

This can happen when an X window is destroyed behind our back.  We use
DRI2CopyRegion behind the scenes in many places (like flushing the fake
front to the real front) so we have to ignore X errors triggered in that
case.

The glean test cases trigger this consistently as they don't destroy the
GLX drawable nicely, they just destroy the X window.

14 years agomesa: set version string to 7.8-rc2
Ian Romanick [Tue, 23 Mar 2010 01:09:15 +0000 (18:09 -0700)]
mesa: set version string to 7.8-rc2

14 years agointel: Call intel_prepare_render() before looking up regions.
Kristian Høgsberg [Mon, 22 Mar 2010 21:54:35 +0000 (17:54 -0400)]
intel: Call intel_prepare_render() before looking up regions.

Fixes #27213.

14 years agoFix potential compilation issue in visual studio project file
Karl Schultz [Mon, 22 Mar 2010 18:18:02 +0000 (12:18 -0600)]
Fix potential compilation issue in visual studio project file

Add quotes around filespec in post-build event to allow paths
with embedded spaces.

14 years agoglslcompiler: fix build breakage
Brian Paul [Mon, 22 Mar 2010 15:00:13 +0000 (09:00 -0600)]
glslcompiler: fix build breakage

14 years agomesa: Add end of line to the end of a debug output.
Pauli Nieminen [Mon, 22 Mar 2010 13:14:16 +0000 (15:14 +0200)]
mesa: Add end of line to the end of a debug output.

14 years agoprogs/tests: Add cva_huge to SCons build.
Vinson Lee [Mon, 22 Mar 2010 02:21:11 +0000 (19:21 -0700)]
progs/tests: Add cva_huge to SCons build.

14 years agoprogs/tests: Include stddef.h for ptrdiff_t on all platforms.
Vinson Lee [Mon, 22 Mar 2010 02:09:54 +0000 (19:09 -0700)]
progs/tests: Include stddef.h for ptrdiff_t on all platforms.

stddef.h is the standard C header that defines ptrdiff_t.

Fixes build of cva_huge on Mac OS X.

14 years agor200: Fix emit size prediction to account elt splitting.
Pauli Nieminen [Sun, 21 Mar 2010 21:23:21 +0000 (23:23 +0200)]
r200: Fix emit size prediction to account elt splitting.

Emit sizes prediction didn't account for render splitting in
hwtnl path.

14 years agor200: Don't flush when closing elts in KMS.
Pauli Nieminen [Sun, 21 Mar 2010 20:55:13 +0000 (22:55 +0200)]
r200: Don't flush when closing elts in KMS.

Flush in middle of rendering in KMS is not allowed because
buffers are discarded in flush.

Fixes crash when emiting split indices with RADEON_DEBUG=all.

14 years agor200: Fix swtnl fallback to flush pending rendering before transition.
Pauli Nieminen [Sun, 21 Mar 2010 18:16:17 +0000 (20:16 +0200)]
r200: Fix swtnl fallback to flush pending rendering before transition.

Flush after transition would emit wrong state that could cause
wrong state emited for pending rendering operation.

Fixes wan once from extrement tuxracer that is using per vertex
materials.

14 years agor200: Fix mixed indetion in r200TclFallback.
Pauli Nieminen [Sun, 21 Mar 2010 18:02:10 +0000 (20:02 +0200)]
r200: Fix mixed indetion in r200TclFallback.

14 years agovbo: Fix vbo_split_copy to pass correct max_index to draw.
Pauli Nieminen [Sun, 21 Mar 2010 10:42:10 +0000 (12:42 +0200)]
vbo: Fix vbo_split_copy to pass correct max_index to draw.

vbo_split_copy was passing one past the max_index to draw function
which caused _tnl_draw_prims function to read uninitialized values
from copied array.

Bug was spoted in valgrind report of progs/tests/cva_huge.

14 years agotests: Add test for huge client arrays that has to be split.
Pauli Nieminen [Sun, 21 Mar 2010 11:11:47 +0000 (13:11 +0200)]
tests: Add test for huge client arrays that has to be split.

When running this test case in valgrind report includes read of unitialized
value in _tnl_draw_prims. The bug doesn't cause any vissible errors.

Bug is caused by vbo_split_copy that is calling draw function with max_index
one past the end instead of the end.

14 years agor300/compiler: fix assertion failure in the r500-fragprog emission path
Marek Olšák [Sat, 20 Mar 2010 17:31:11 +0000 (18:31 +0100)]
r300/compiler: fix assertion failure in the r500-fragprog emission path

14 years agodocs: remove the 'Last updated date'
Brian Paul [Sat, 20 Mar 2010 16:33:10 +0000 (10:33 -0600)]
docs: remove the 'Last updated date'

14 years agoglapi: Fix aliases to non-static functions.
Chia-I Wu [Sat, 20 Mar 2010 15:58:15 +0000 (23:58 +0800)]
glapi: Fix aliases to non-static functions.

The bug is triggered by 41a87a43e11c664935349f938022d58d3e22da4e.
glBlitFramebuffer, for example, is an alias to the non-static
glBlitFramebufferEXT.  We should define glBlitFramebuffer as an alias to
_dispatch_stub_NNN.

14 years agoglapi: Correctly generate static disatches for X86.
Chia-I Wu [Thu, 18 Mar 2010 03:36:57 +0000 (11:36 +0800)]
glapi: Correctly generate static disatches for X86.

The entry point names, instead of the function name, should be used to
test if the entry point should be statically dispatched.

14 years agor300g: remove hacks from translate_vertex_data_swizzle
Marek Olšák [Tue, 9 Mar 2010 01:10:36 +0000 (02:10 +0100)]
r300g: remove hacks from translate_vertex_data_swizzle

Fixing RGBA 4ub vertex colors.

14 years agodrivers/x11: add PUBLIC qualifier to more API functions
Brian Paul [Fri, 19 Mar 2010 16:35:58 +0000 (10:35 -0600)]
drivers/x11: add PUBLIC qualifier to more API functions

Based on a patch from Tom Fogal.

14 years agointel: Use bit-wise not instead of logical not (i830 path)
Ian Romanick [Fri, 19 Mar 2010 00:30:15 +0000 (17:30 -0700)]
intel: Use bit-wise not instead of logical not (i830 path)

The assertion is checking that the low-order bits of offset are not
set.  It does this by anding the inverted offset mask with the
offset.  This is clearly intended to be a bit-wise "invert".

Fixes bug #25984.

14 years agointel: Correct value of S0_VB_OFFSET_MASK to match hardware docs.
Ian Romanick [Fri, 19 Mar 2010 00:28:52 +0000 (17:28 -0700)]
intel: Correct value of S0_VB_OFFSET_MASK to match hardware docs.

14 years agoUse bit-wise not instead of logical not.
Ian Romanick [Thu, 18 Mar 2010 22:35:05 +0000 (15:35 -0700)]
Use bit-wise not instead of logical not.

The assertion is checking that the low-order bits of offset are not
set.  It does this by anding the inverted offset mask with the
offset.  This is clearly intended to be a bit-wise "invert".

Fixes bug #25984.

14 years agost/mesa: s/unpack/pack/ to be more consistent
Brian Paul [Thu, 18 Mar 2010 15:17:11 +0000 (09:17 -0600)]
st/mesa: s/unpack/pack/ to be more consistent

14 years agointel: Call _mesa_make_current() after getting initial buffers
Kristian Høgsberg [Thu, 18 Mar 2010 02:44:58 +0000 (22:44 -0400)]
intel: Call _mesa_make_current() after getting initial buffers

The default viewport is the window rectangle, which is set up by
_mesa_make_current().  To be able to do that we need to get the
window dimension (and buffers) first, so we have to call
intel_prepare_render() before we can call into _mesa_make_current().

Fixes #26676 and #26678.

14 years agocell: return 1 for PIPE_CAP_BLEND_EQUATION_SEPARATE
Brian Paul [Wed, 17 Mar 2010 23:39:49 +0000 (17:39 -0600)]
cell: return 1 for PIPE_CAP_BLEND_EQUATION_SEPARATE

With this feature, we get OpenGL version 2.0 and the progs/glsl/
demos run as-is.

14 years agocell: be more conservative in cell_is_format_supported()
Brian Paul [Wed, 17 Mar 2010 22:33:29 +0000 (16:33 -0600)]
cell: be more conservative in cell_is_format_supported()

This fixes a regression from commit a84575cdc0c8193b2c7858734e2ec6b1ec4511b2
which changed the depth/stencil format we were trying to use.

14 years agost/mesa: fix glCopyPixels bugs/crashes when src region need clipping
Brian Paul [Wed, 17 Mar 2010 16:06:27 +0000 (10:06 -0600)]
st/mesa: fix glCopyPixels bugs/crashes when src region need clipping

Use the _mesa_clip_readpixels() function to clip the src region against
the buffer's bounds.  Neatly, the resulting pixel unpack object's
SkipPixels/SkipRows fields can be used to determine the position of the
region in the destination texture.

Fixes crash in progs/samples/copy.c and probably other cases.

14 years agomesa: rename params in prototype to match implementation
Brian Paul [Wed, 17 Mar 2010 15:04:26 +0000 (09:04 -0600)]
mesa: rename params in prototype to match implementation

14 years agoswrast: remove unused compute_coveragei() function
Brian Paul [Wed, 17 Mar 2010 14:41:47 +0000 (08:41 -0600)]
swrast: remove unused compute_coveragei() function

14 years agoi965: Fix ENDLOOP to only patch up this loop's BREAK and CONT.
Eric Anholt [Tue, 9 Mar 2010 22:22:51 +0000 (14:22 -0800)]
i965: Fix ENDLOOP to only patch up this loop's BREAK and CONT.

Corresponds to d225a25e21a24508aea3b877c78beb35502e942d and fixes
piglit glsl-fs-loop-nested.  Bug #25173.
(cherry picked from commit a81836ee2fe5092d695b717addf8cec91f569777)

14 years agoi965: Unalias all GLSL source regs from the destination regs used.
Eric Anholt [Tue, 9 Mar 2010 19:56:14 +0000 (11:56 -0800)]
i965: Unalias all GLSL source regs from the destination regs used.

We were doing it ad-hoc before, as instructions with potential
aliasing problems were identified.  But thanks to swizzling basically
anything can have aliasing, so just do it generally at source reg
setup time.  This is somewhat inefficient, because sometimes an
operation doesn't need unaliasing protection if the swizzling is safe,
but the unaliasing before didn't cover those cases either.

Fixes piglit glsl-fs-loop.
(cherry picked from commit 6b194dab6b4d9f12cdd54c699b23c0d3420a49c2)

14 years agoi965: Fix nested loops in the VS.
Eric Anholt [Tue, 9 Mar 2010 17:56:42 +0000 (09:56 -0800)]
i965: Fix nested loops in the VS.

We were patching up all the break and continues between the start of
our loop and the end of our loop, even if they were breaks/continues
for an inner loop.  Avoiding patching already patched breaks/continues
fixes piglit glsl-vs-loop-nested.
(cherry picked from commit f6f547d87ea68f44c50a0b0231b7360ca94b2975)

14 years agoi965: Fix up VP constbuf leak on program delete.
Eric Anholt [Tue, 9 Mar 2010 00:08:33 +0000 (16:08 -0800)]
i965: Fix up VP constbuf leak on program delete.
(cherry picked from commit 7f6d2754d586545ab6c970acffdd897294879039)

14 years agoi965: Fix up the handling of point sprite coordinate replacement.
Eric Anholt [Mon, 8 Mar 2010 20:12:31 +0000 (12:12 -0800)]
i965: Fix up the handling of point sprite coordinate replacement.

The code was walking over the regs of pairs of attributes and checking
whether the attribute with a given reg index had point sprite enabled.
So the point sprite setup code was rarely even getting executed.
Instead, we need to determine which channels of a reg need point
sprite coordinate replacement.  In addition, it was multiplying the
attribute by 1/w, when it's supposed to cover (0, 1) in each direction
regardless of w, and it wasn't filling in the Z and W components of
the texcoord as specified.

Fixes piglit point-sprite and the spriteblast demo.  Bug #24431, #22245.
(cherry picked from commit bc632d04370566c1156cbd0345fe303834f0b910)

14 years agoi965: Add support for the CMP opcode in the GLSL path.
Eric Anholt [Wed, 10 Mar 2010 19:00:40 +0000 (11:00 -0800)]
i965: Add support for the CMP opcode in the GLSL path.

This would be triggered by use of sqrt() along with control flow.
Fixes piglit-fs-sqrt-branch and a bug in Yo Frankie!.
(cherry picked from commit 48dca99feb394febc3af44e14f23fb12a9cc9204)

14 years agoi965: Fix the response len of masked sampler messages for 8-wide dispatch.
Eric Anholt [Wed, 10 Mar 2010 18:38:20 +0000 (10:38 -0800)]
i965: Fix the response len of masked sampler messages for 8-wide dispatch.

The bad response length would hang the GPU with a masked sample in a
shader using control flow.  For 8-wide, the response length is always
4, and masked slots are just not written to.  brw_wm_glsl.c already
allocates registers in the right locations.

Fixes piglit glsl-fs-bug25902 (fd.o bug #25902).
(cherry picked from commit f6d210c284751ac50a8d6358de7e75a1ff1e4ac7)
(cherry picked from commit dc8c0359448cdae7b367552ba58783c04b199778)

14 years agoRemove nonexistant files from tarballs rule of Makefile
Ian Romanick [Tue, 16 Mar 2010 14:48:14 +0000 (07:48 -0700)]
Remove nonexistant files from tarballs rule of Makefile

The Makefile should eventually be fixed to stop building tarballs if
one of the individual calls to tar fails.

14 years agomesa: set version string to 7.8-rc1
Ian Romanick [Tue, 16 Mar 2010 14:38:51 +0000 (07:38 -0700)]
mesa: set version string to 7.8-rc1

14 years agoCorrect GL_EQUIV code in r67/7xx.
Matthew W. S. Bell [Mon, 15 Mar 2010 01:18:02 +0000 (01:18 +0000)]
Correct GL_EQUIV code in r67/7xx.

From 247e121106e8d3e389f2e5a6edf13ea70ac18df7 Mon Sep 17 00:00:00 2001

These seem to be documented in
<http://www.svgopen.org/2003/papers/RasterOperationsUsingFilterElements/index.html>.

14 years agoradeon: Fix buffer object unmap to be called only once for dma buffers.
Pauli Nieminen [Mon, 15 Mar 2010 08:30:18 +0000 (10:30 +0200)]
radeon: Fix buffer object unmap to be called only once for dma buffers.

If flush happens inside radeonRefillCurrentMaRegion the last dma buffer would
be unmapped twice. Unmapping buffer when moving buffer to wait list fixes the
mapping error.

14 years agoReplace _mesa_strtod with _mesa_strtof.
Marcin Baczyński [Sat, 13 Mar 2010 13:26:45 +0000 (14:26 +0100)]
Replace _mesa_strtod with _mesa_strtof.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agomesa: Fix memory leak in decompress-with-blit.
Keith Whitwell [Fri, 12 Mar 2010 18:32:10 +0000 (18:32 +0000)]
mesa: Fix memory leak in decompress-with-blit.
(cherry picked from commit f05a4ee6f2840590c90da4be2fe5c6295410a5af)

14 years agovmwgfx/dri: Fix SCons build.
Michel Dänzer [Fri, 12 Mar 2010 17:54:23 +0000 (18:54 +0100)]
vmwgfx/dri: Fix SCons build.

14 years agost/dri: Always try to set up R5G6B5 configs.
Michel Dänzer [Fri, 12 Mar 2010 17:24:34 +0000 (18:24 +0100)]
st/dri: Always try to set up R5G6B5 configs.

Allows compiz to work in depth 16.

The DRI2 getBuffersWithFormat hook is only required for 16/32 bit depth
buffers, for colour buffers the only requirement is that the format matches
the drawable depth, which we can't check here.

(cherry picked from commit c50477c255a34444720fb944c54373462ef39fb9)

14 years agodri/r700: include shader/programopt.h instead of programopt.c.
Luc Verhaegen [Fri, 12 Mar 2010 07:35:22 +0000 (08:35 +0100)]
dri/r700: include shader/programopt.h instead of programopt.c.

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