Commit graph

32144 commits

Author SHA1 Message Date
Matthew W. S. Bell
d320152b47 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>.
2010-03-16 11:39:53 -04:00
Pauli Nieminen
e9c2c4a764 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.
2010-03-16 17:00:14 +02:00
Marcin Baczyński
346298c765 Replace _mesa_strtod with _mesa_strtof.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-15 08:38:24 -07:00
Keith Whitwell
63af29bfbe mesa: Fix memory leak in decompress-with-blit.
(cherry picked from commit f05a4ee6f2840590c90da4be2fe5c6295410a5af)
2010-03-13 10:40:04 +00:00
Michel Dänzer
8561bec0ac vmwgfx/dri: Fix SCons build. 2010-03-12 18:54:23 +01:00
Michel Dänzer
51a51899d0 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 c50477c255)
2010-03-12 18:52:07 +01:00
Luc Verhaegen
4b598ce226 dri/r700: include shader/programopt.h instead of programopt.c.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-03-12 08:57:55 -07:00
Jeff Smith
9b81103b1a Add programs to .gitignore in redbook
Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-03-12 08:57:34 -07:00
Jeff Smith
3aa8692883 Add programs to .gitignore in xdemos
Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-03-12 08:57:06 -07:00
Jeff Smith
9787060423 Add -L$(libdir) for xdemos and egl so that the right libX11 is found
Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-03-12 08:56:06 -07:00
Jeff Smith
fab1f07d6a Grammar and spelling fixes
Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-03-12 08:55:05 -07:00
Vinson Lee
39c2d3ecd9 radeon: Fix memory leaks from early return. 2010-03-11 21:55:44 -08:00
Brian Paul
5d5c524cbe st/mesa: s/BUFFER_FRONT_LEFT/surfIndex/ 2010-03-11 14:51:02 -07:00
Brian Paul
c472ce5302 st/mesa: fix st_set_framebuffer_surface() state validation
Set the _NEW_BUFFERS flag and remove the code which updated the
parent framebuffer size.  Normal Mesa state validation will do that.

Fixes issues with Warsow on r300g and possibly other bugs.
2010-03-11 13:44:53 -07:00
Jakob Bornecrantz
683a099954 st/xorg: Fixup configure
Make sure we always test for XEXT version.
Make sure that the user has a recent version of libkms and libdrm installed.

Note that the st/xorg code requires so new versions to work but these are
needed to make a proper vmwgfx_drv.so driver which is the only real user.

Cherry picked from 46cf606cd3
Conflicts:

	configure.ac
2010-03-11 19:30:16 +00:00
Brian Paul
bff128ff9c ARB prog parser: added (float) casts and regenerate files 2010-03-11 09:08:58 -07:00
Jakob Bornecrantz
54af54277a st/xorg: Include cursorstr.h 2010-03-11 00:50:58 +00:00
Karl Schultz
60121c41ce windows: fix compilation errors and warnings 2010-03-10 15:58:10 -07:00
Karl Schultz
7439f39016 windows: Quiet warning by not defining YY_NO_UNISTD_H. 2010-03-10 14:27:34 -07:00
Brian Paul
b60aa251e4 st/mesa: fix incorrect glCopyPixels between window/FBO
There was a DrawBuffer/ReadBuffer typo and we were neglecting to invert
the texture coords when copying from a window to an FBO.

Plus, add some surface dump/debug code (disabled).

(cherry picked from commit 34f0207161)
2010-03-10 10:42:22 -07:00
Brian Paul
c78ac7fcfa st/mesa: fix incorrect glDrawPixels into FBO
We weren't inverting the textured quad when drawing into an fbo.

(cherry picked from commit 8d3f629a13)
2010-03-10 10:41:22 -07:00
Michel Dänzer
766d90f1a2 st/xorg: Work around cursor reference counting bugs in older X servers.
Could result in use of freed memory and consequently random crashes, e.g. on
screen resize.
(cherry picked from commit 21c91b410a)

Conflicts:

	src/gallium/state_trackers/xorg/xorg_tracker.h
2010-03-10 18:26:25 +01:00
Alex Deucher
ffd625d4aa radeon: don't attempt to use alternate blit formats for depth buffers
noticed by fredrikh on IRC.
2010-03-08 17:38:39 -05:00
Brian Paul
e1762fb870 softpipe: zero-out entire clear_flags array in sp_tile_cache_flush_clear()
Before, we only cleared the flags for the active tiles (the ones inside
the framebuffer bound).  The problem is if we later bound a different,
larger surface to the tile cache we'd have some stale clear-flags still
set (and mistakenly clear some tiles in the new surface).

Fixes fd.o bug 26932.
2010-03-08 11:39:51 -07:00
Brian Paul
80dc54e308 st/mesa: don't detach renderbuffer, surface in st_finish_render_texture()
There's no reason to release the renderbuffer from the framebuffer object
or release the gallium surface in this function (they're reference counted).
In fact, we don't want to do this because we may later use the texture as a
pixel source (ex: glBlitFramebuffer) and need the surface.

Fixes fd.o bug 26923 and is part of the fix for bug 26932.
2010-03-08 11:39:51 -07:00
Alex Deucher
df9bf78f88 r600: enable GL_ARB_pixel_buffer_object 2010-03-08 12:00:57 -05:00
Brian Paul
fe25bee14f mesa: add additional missing z formats for render to texture
Allow render to texture for X8_Z24 and Z24_X8 formats.
Replace big if/else with switch, etc.
2010-03-08 10:00:29 -07:00
Alex Deucher
9458c2061b radeon/r200/r600: allow src and dst BOs to be placed in GTT during blit 2010-03-08 11:50:01 -05:00
Alex Deucher
d7ad1b8b07 radeon/r200/r600: reset bos when validating buffers during blit 2010-03-08 11:49:53 -05:00
Alex Deucher
c65235f97e r600: recalculate point size, if point min/max size changes 2010-03-08 11:49:44 -05:00
Alex Deucher
d18b302365 r600: no need to flush on context init 2010-03-08 11:49:31 -05:00
Maciej Cencora
b3b6bd5da1 r300: don't enable EXT_packed_depth_stencil
R300 hw doesn't support sampling from Z24_S8 or S8_Z24 formats.
2010-03-08 11:49:23 -05:00
Maciej Cencora
29e02c7e72 radeon: no need to emit full state twice after flush 2010-03-08 11:49:16 -05:00
Maciej Cencora
4572ae1925 r300: allow src and dst BOs to be placed in GTT during blit
Fixes some relocation failures
2010-03-08 11:49:09 -05:00
Maciej Cencora
62b3321d7d r300: reset bos when validating buffers during blit 2010-03-08 11:49:01 -05:00
Maciej Cencora
8ccd83ab92 radeon: fallback to software in glCopyTexImage if blit isn't available 2010-03-08 11:48:52 -05:00
Maciej Cencora
2872c1cc32 r300: VAP flush is needed only when vertex program or constants are changed 2010-03-08 11:48:45 -05:00
Maciej Cencora
77ed4d1f5d r300: recalculate point size, if point min/max size changes
Fixes two wine d3d9 unit tests
2010-03-08 11:48:36 -05:00
Maciej Cencora
44d92d4bbe r300: no need to flush on context init 2010-03-08 11:48:28 -05:00
Maciej Cencora
b1ab15c633 r300: remove unnecessary code
_tnl_UpdateFixedFunctionProgram is already called in r300_draw.c
2010-03-08 11:48:20 -05:00
Brian Paul
26aa870a0d mesa: add render-to-texture case for MESA_FORMAT_S8_Z24 2010-03-08 09:38:07 -07:00
Brian Paul
614f490ca9 mesa: s/GL_DEPTH_STENCIL/GL_DEPTH_COMPONENT/ for MESA_FORMAT_Z16 renderbuffer
MESA_FORMAT_Z16 has no stencil bits.
2010-03-08 09:35:28 -07:00
Chia-I Wu
ee6fbf8d2f st/vega: Fix OpenVG demo segfaults.
When the paint is color, paint_bind_samplers binds a dummy sampler
without a texture.  It causes demos requiring a sampler (those use a
mask or an image) to crash.
2010-03-08 11:29:25 +08:00
Vinson Lee
661b416e07 gallivm: Initialize variables for default cases.
Fixes use of uninitialized variables in non-debug builds.
2010-03-06 20:30:28 -08:00
Vinson Lee
ba8f4c5d36 progs/demos: Add arbocclude2 to Makefile and .gitignore. 2010-03-05 23:18:01 -08:00
Brian Paul
ae7b3a632d glx: Move initialization of ext_list_first_time to where it's storage is allocated
Move the initialization of ext_list_first_time from all of the DRI loader's
CreateScreen routines, to where the storage for the screen config is
allocated.

It needs to get set in the screen-config even if DRI is forced off
using LIBGL_ALWAYS_INDIRECT, so that psc->direct_support is initialized
correctly, otherwise __glXExtensionBitIsEnabled() always returns FALSE

Specifically, this causes a problem with an X server which advertises
GLX<=1.2, and the GLX_SGIX_fbconfig extension.
glXGetFBConfigFromVisualSGIX() uses __glXExtensionBitIsEnabled() to
check if the GLX_SGIX_fbconfig extension is available, but that function
won't return correct information because that data has never been
initialized, because ext_list_first_time was never set...

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Brian Paul <brianp@vmware.com>

(cherry picked from commit 96ab4d2b84)
2010-03-05 17:32:36 -07:00
Brian Paul
c781e2841a docs: remove merge conflict garbage 2010-03-05 17:32:07 -07:00
Ian Romanick
77fc3ef911 meta: Use the DrawBuffer's stencil size
Previously the code was erroneously using the stencil size of the
context instead of the stencil size of the DrawBuffer.  With FBOs
these may be different.  As a result, clearing the stencil buffer of
an FBO bound to a context that doesn't have stencil would fail.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-05 16:04:59 -08:00
Ian Romanick
66c0abba6b swrast: Remove redundant test of the visual's accumulation buffer size
If the visual doesn't have an accumulation buffer, the renderbuffer
passed into _swrast_clear_accum_buffer will be NULL anyway.  There is
no reason the check the visual.  Moreover, the test erroneously checks
the context's visual instead of the visual of the current DrawBuffer.
With FBOs these may be different.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-05 16:04:59 -08:00
Ian Romanick
ebbec7e4e4 swrast: Adjust colors based on ReadBuffer visual, not context visual
In the presence of FBOs, the visual of the context may not match the,
possibly fake, visual of the current ReadBuffer.  Note that the caller
of adjust_colors correctly uses the visual of the ReadBuffer.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-05 16:04:59 -08:00