Brian Paul [Thu, 21 May 2009 22:54:35 +0000 (16:54 -0600)]
vbo: fix incorrect loop limit in bind_array_obj()
The generic_array[] is 16 elements in size, but the loop was doing 32
iterations. The out of bounds array write was clobbering the following
inputs[] array but as luck would have it, that didn't matter.
Brian Paul [Thu, 21 May 2009 22:52:45 +0000 (16:52 -0600)]
mesa: use MAX_ values instead of literals
Carl Worth [Thu, 21 May 2009 13:52:13 +0000 (07:52 -0600)]
minstall: Don't copy over an identical file
The rationale here is to avoid updating a timestamp for a file that
hasn't changed. Needless updates of the timestamp can ripple into
other projects, (xserver, etc.), useless recompiling due to a
'make install' in mesa that didn't actually change anything.
Mathias Fröhlich [Tue, 19 May 2009 15:59:01 +0000 (09:59 -0600)]
mesa: allow depth/stencil textures to be attached to GL_STENCIL_ATTACHMENT
See sourceforge bug #
2793846.
Brian Paul [Tue, 19 May 2009 15:57:01 +0000 (09:57 -0600)]
mesa: assign trb->Base.StencilBits in update_wrapper().
When we render to a depth/stencil texture there are stencil bits.
Brian Paul [Mon, 18 May 2009 16:28:04 +0000 (10:28 -0600)]
st/mesa: fix incorrect src/dst stride params to _mesa_generate_mipmap_level()
The stride needs to be in texels, not bytes.
Brian Paul [Mon, 18 May 2009 16:27:31 +0000 (10:27 -0600)]
mesa: comments for _mesa_generate_mipmap_level()
Brian Paul [Mon, 18 May 2009 16:13:44 +0000 (10:13 -0600)]
softpipe: add texture target sanity check assertion
Brian Paul [Mon, 18 May 2009 16:12:36 +0000 (10:12 -0600)]
st: fix incorrect target parameter to screen->is_format_supported()
We were passing a GL texture target instead of a pipe_texture_target enum.
Brian Paul [Mon, 18 May 2009 14:46:17 +0000 (08:46 -0600)]
mesa: added linux-osmesa-static config
Contributed by Nicolas Noble. See SF bug #
2792536
Brian Paul [Mon, 18 May 2009 13:17:46 +0000 (07:17 -0600)]
docs: link to 7.5 relnotes
Brian Paul [Mon, 18 May 2009 13:17:36 +0000 (07:17 -0600)]
docs: emphasize the incomplete status of the nouveau/R300 gallium drivers
Aidan Thornton [Mon, 18 May 2009 10:47:00 +0000 (12:47 +0200)]
Initialize psp->waitX/waitGL for swrast_dri.so.
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=21053 .
Brian Paul [Fri, 15 May 2009 14:03:56 +0000 (08:03 -0600)]
mesa: bump version to 7.5-rc2
Brian Paul [Fri, 15 May 2009 14:02:40 +0000 (08:02 -0600)]
docs: updates from the 7.4 branch
Michel Dänzer [Thu, 14 May 2009 09:07:49 +0000 (11:07 +0200)]
r300: Make sure to drop current hardware state reference to texture objects.
Fixes potential texture object leaks.
Brian Paul [Wed, 13 May 2009 17:31:35 +0000 (11:31 -0600)]
intel: added null ptr check
Fixes segfault in context tear-down when glClear was never called.
Brian Paul [Wed, 13 May 2009 16:28:00 +0000 (10:28 -0600)]
intel: create a private gl_array_object for intel_clear_tris(), fix bug 21638
gl_array_object encapsulates a set of vertex arrays (see the
GL_APPLE_vertex_array_object extension).
Create a private gl_array_object for drawing the quad for intel_clear_tris()
so we don't have to worry about the user's vertex array state.
This fixes the no-op glClear bug #21638 and removes the need to call
_mesa_PushClientAttrib() and _mesa_PopClientAttrib().
Brian Paul [Wed, 13 May 2009 15:47:13 +0000 (09:47 -0600)]
mesa: delete array objects before buffer objects during context tear-down
The former may point to the later.
Brian Paul [Wed, 13 May 2009 15:32:53 +0000 (09:32 -0600)]
mesa: clean-up vertex array object VBO unbinding and delete/refcounting
Don't really delete vertex array objects until the refcount hits zero.
At that time, unbind any pointers to VBOs.
(cherry picked from commit
32b851c80792623195069d7a41a5808cff3b2f6f)
Brian Paul [Wed, 13 May 2009 15:27:31 +0000 (09:27 -0600)]
mesa: reference counting for gl_array_object
Every kind of object that can be shared by multiple contexts should be
refcounted.
(cherry picked from commit
1030bf0ded2a88a5e27f7a4d393c11cfde3d3c5a)
Michel Dänzer [Tue, 12 May 2009 06:01:22 +0000 (08:01 +0200)]
glXChooseVisual: Only consider fbconfig if we can get the corresponding visual.
This can fail, e.g. when XLIB_SKIP_ARGB_VISUALS=1 is set.
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524794 and
http://bugs.freedesktop.org/show_bug.cgi?id=21600 .
Ian Romanick [Tue, 28 Apr 2009 17:08:57 +0000 (10:08 -0700)]
Test either GL_FRONT_LEFT or GL_FRONT for front-buffer rendering
For non-stereo visuals, which is all we support, we treat
GL_FRONT_LEFT as GL_FRONT. However, they are technically different,
and they have different enum values. Test for either one to determine
if we're in front-buffer rendering mode.
This fix was suggested by Pierre Willenbrock.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit
2085cf24628be7cd297ab0f9ef5ce02bd5a006e2)
Brian Paul [Mon, 11 May 2009 22:09:39 +0000 (16:09 -0600)]
st: do proper refcounting for framebuffer surfaces
Brian Paul [Mon, 11 May 2009 22:08:01 +0000 (16:08 -0600)]
trivial: destroy window upon exit
Brian Paul [Mon, 11 May 2009 15:46:56 +0000 (09:46 -0600)]
mesa: Fixed a texture memory leak
The current texture for any particular texture unit is given an additional
reference in update_texture_state(); but if the context is closed before
that texture can be released (which is quite frequent in normal use, unless
a program unbinds and deletes the texture and renders without it to force
a call to update_texture_state(), the memory is lost.
This affects general Mesa; but the i965 is particularly affected because
it allocates a considerable amount of additional memory for each allocated
texture.
(cherry picked from master, commit
c230767d6956b63a2b101acb48f98823bb5dd31a)
Brian Paul [Sat, 9 May 2009 22:21:16 +0000 (16:21 -0600)]
mesa: added more gallium Makefiles to tarball list
Hanno Böck [Sat, 9 May 2009 22:17:37 +0000 (16:17 -0600)]
gallium: replace lib with $(LIB_DIR)
Brian Paul [Fri, 8 May 2009 21:07:22 +0000 (15:07 -0600)]
mesa: omit files that were removed from git
Brian Paul [Fri, 8 May 2009 21:04:12 +0000 (15:04 -0600)]
mesa: set version to 7.5-rc1
José Fonseca [Fri, 8 May 2009 13:23:45 +0000 (14:23 +0100)]
wgl: Grow the maximum number of pixel formats to cope with the new accum pixel formats.
Fix a segfault when using softpipe.
Keith Whitwell [Thu, 7 May 2009 18:48:06 +0000 (19:48 +0100)]
mesa/st: keep surface_copy arguments positive
The src/dest x,y, and w,h arguments of the pipe->surface_copy
function are unsigned and the drivers aren't expecting negative
(or extremly-large unsigned) values as inputs. Trim the requests
at the state-tracker level before passing down.
Keith Whitwell [Thu, 7 May 2009 18:27:30 +0000 (19:27 +0100)]
mesa/st: remove redundant call to st_finish in CopyTexSubImage
Rendering should already have been flushed, any synchronization will
be done by the driver or memory manager.
José Fonseca [Thu, 7 May 2009 17:21:56 +0000 (18:21 +0100)]
wgl: Export pixelformats with accumulation bits.
Keith Whitwell [Thu, 7 May 2009 10:46:08 +0000 (11:46 +0100)]
mesa/st: cope with non-ibo index data in st_draw_feedback.c
Previously only non-indexed or indicies-in-a-vbo cases were handled in
this code. This change adds the missing regular indices-in-memory
case.
Keith Whitwell [Thu, 7 May 2009 08:24:37 +0000 (09:24 +0100)]
util/upload: catch failures to map_range and return error
Caller may be able to do something about this - eg flush and retry.
Keith Whitwell [Thu, 7 May 2009 07:00:42 +0000 (08:00 +0100)]
scons: mingw is broken with -O1 and higher
Keith Whitwell [Wed, 6 May 2009 19:41:17 +0000 (20:41 +0100)]
stw: fix potential uninitialized use of curctx
José Fonseca [Wed, 6 May 2009 18:58:08 +0000 (19:58 +0100)]
wgl: Enforce a minimum 1x1 framebuffer size.
José Fonseca [Fri, 1 May 2009 17:53:51 +0000 (18:53 +0100)]
wgl: Add assertion for missing function.
José Fonseca [Fri, 1 May 2009 17:53:17 +0000 (18:53 +0100)]
wgl: Remove unused variable.
José Fonseca [Fri, 1 May 2009 17:52:54 +0000 (18:52 +0100)]
mesa: Make _mesa_share_state thread safe.
José Fonseca [Fri, 1 May 2009 17:49:22 +0000 (18:49 +0100)]
wgl: Implement ShareLists.
Keith Whitwell [Tue, 5 May 2009 12:00:44 +0000 (13:00 +0100)]
progs/trivial: add test for vertex program invarient transform
Keith Whitwell [Tue, 5 May 2009 11:12:28 +0000 (12:12 +0100)]
mesa: more complete fix for transform_invarient glitches
Add a new flag mvp_with_dp4 in the context, and use that to switch
both ffvertex.c and programopt.c vertex transformation code to
either DP4 or MUL/MAD implementations.
Keith Whitwell [Fri, 1 May 2009 17:20:42 +0000 (18:20 +0100)]
mesa/main: set PREFER_DP4 to match position_invarient code
This is a quick fix for z fighting in quake4 caused by the mismatch
between vertex transformation here and in the position_invarient code.
Full fix would be to make this driver-tunable and adjust both
position_invarient and ffvertex_prog.c code to respect driver
preferences.
José Fonseca [Fri, 1 May 2009 15:30:08 +0000 (16:30 +0100)]
wgl: Implemente SwapLayerBuffers.
José Fonseca [Fri, 1 May 2009 15:12:17 +0000 (16:12 +0100)]
scons: Don't use deprecated Options.
José Fonseca [Thu, 30 Apr 2009 12:10:58 +0000 (13:10 +0100)]
util: Limit the stack walk to avoid referencing undefined memory.
Keith Whitwell [Thu, 30 Apr 2009 12:09:34 +0000 (13:09 +0100)]
gallium/tgsi: hack around linker/archiver breakage
Add a dummy function which exists only so that tgsi_text_translate()
doesn't get magic-ed out of the libtgsi.a archive by the build system.
Don't remove unless you know this has been fixed - check on
mingw/scons builds as well.
Keith Whitwell [Thu, 30 Apr 2009 11:35:59 +0000 (12:35 +0100)]
progs/trivial: add vbo-noninterleaved test
José Fonseca [Thu, 30 Apr 2009 11:24:08 +0000 (12:24 +0100)]
wgl: Include alpha bits in pixel format's cColorBits field.
Keith Whitwell [Thu, 30 Apr 2009 09:59:19 +0000 (10:59 +0100)]
gallium/draw: cope with unused vertex_elements
Keith Whitwell [Wed, 29 Apr 2009 13:21:41 +0000 (14:21 +0100)]
trivial: add line-flat.c
José Fonseca [Tue, 28 Apr 2009 18:46:56 +0000 (19:46 +0100)]
wgl: UINT_PTR null value is an integral type, so return 0 instead of NULL.
José Fonseca [Tue, 28 Apr 2009 17:53:52 +0000 (18:53 +0100)]
pb: Save the stack backtrace when creating/mapping a debug buffer.
José Fonseca [Tue, 28 Apr 2009 16:07:01 +0000 (17:07 +0100)]
pb: Dump the fenced buffer sizes.
Brian Paul [Thu, 7 May 2009 15:43:15 +0000 (09:43 -0600)]
swrast: fix span clipping bug
If a horizontal span of pixels was located at x < 0 we could sometimes
read/write outside of renderbuffer bounds.
Brian Paul [Thu, 7 May 2009 15:36:21 +0000 (09:36 -0600)]
mesa: unmap buffer objects during context tear-down
Brian Paul [Tue, 5 May 2009 16:11:51 +0000 (10:11 -0600)]
gallium: fix texcoords for cubemap mipmap generation
We need to use (s,t,r) cubemap coords when sampling from the cubemap texture
so the rendered quad gets texture samples from the correct cube face.
Brian Paul [Mon, 4 May 2009 13:52:55 +0000 (07:52 -0600)]
glx: replace Xmalloc() calls with Xcalloc()
Fixes a bug where psp->WaitX was uninitialized. Reported by Chris Clayton.
Brian Paul [Sat, 2 May 2009 00:17:34 +0000 (18:17 -0600)]
st: create renderbuffer's pipe_surface in st_render_texture()
Previously we created the pipe_surface during framebuffer validation.
But if we did a glCopyTex[Sub]Image() before anything else we wouldn't yet
have the surface. This fixes that.
Brian Paul [Sat, 2 May 2009 00:04:07 +0000 (18:04 -0600)]
mesa: fix state validation bug for glCopyTex[Sub]Image()
We need to make sure the framebuffer state is up to date to make sure we
read pixels from the right buffer when doing a texture image copy.
Tom Fogal [Wed, 29 Apr 2009 04:03:12 +0000 (21:03 -0700)]
Fix symbol list for mangled Mesa on Darwin.
When building mangled Mesa on Darwin, the exported symbols are
named `_mgluWhatever' instead of simply `_gluWhatever'. When
using a list of exported symbols via the system ld's
`-exported_symbols_list' command line option (as done by mklib),
this resulted in error messages about exporting symbols which do
not exist.
Fortunately the file format accepts simple wildcards. This throws
a wildcard so that the symbol list will match both the mangled and
non-mangled names, preventing the warning and actually exporting
the correct symbols in one shot.
Brian Paul [Fri, 1 May 2009 15:19:59 +0000 (09:19 -0600)]
mesa: remove -devel suffix from version
Brian Paul [Fri, 1 May 2009 15:15:14 +0000 (09:15 -0600)]
configs: bump MESA_MINOR to 5
Brian Paul [Thu, 30 Apr 2009 23:27:51 +0000 (17:27 -0600)]
docs: fix typo
Corbin Simpson [Fri, 1 May 2009 14:29:14 +0000 (07:29 -0700)]
radeon: Don't even bother with things too big to fit into our card.
Corbin Simpson [Fri, 1 May 2009 13:01:52 +0000 (06:01 -0700)]
r300-gallium, radeon-winsys: Hide radeon_cs from r300 pipe.
Corbin Simpson [Fri, 1 May 2009 12:54:53 +0000 (05:54 -0700)]
r300-gallium, radeon-winsys: Space accounting.
It is no longer optional in current libdrm, so it was time to actually
start counting our BOs.
Corbin Simpson [Fri, 1 May 2009 12:03:56 +0000 (05:03 -0700)]
r300-gallium, radeon-winsys: Reorganize r300_winsys header, break ABI.
Make things more consistent, prepare for more function hooks.
Corbin Simpson [Fri, 1 May 2009 11:47:50 +0000 (04:47 -0700)]
r300-gallium: Don't bother with conditional double define.
We'll just forever leave it in r300_winsys.h since it's needed for
whichever winsys is hosting the pipe.
Corbin Simpson [Tue, 28 Apr 2009 11:37:56 +0000 (04:37 -0700)]
radeon: Fix cast and comment.
Brian Paul [Thu, 30 Apr 2009 23:17:31 +0000 (17:17 -0600)]
docs: asst. updates for 7.5 release
Brian Paul [Thu, 30 Apr 2009 23:13:22 +0000 (17:13 -0600)]
docs: bring in 7.4 doc updates from mesa_7_4_branch
Brian Paul [Thu, 30 Apr 2009 23:11:20 +0000 (17:11 -0600)]
docs: notes about new version number meaning in release notes
Brian Paul [Thu, 30 Apr 2009 23:04:01 +0000 (17:04 -0600)]
mesa: update linux-static, linux-x86-static configs
Brian Paul [Thu, 30 Apr 2009 23:03:54 +0000 (17:03 -0600)]
demos: silence warning
Tormod Volden [Thu, 30 Apr 2009 22:55:54 +0000 (16:55 -0600)]
mklib: replace if/expr with case
Saves forking an expr for every object.
Tormod Volden [Thu, 30 Apr 2009 22:52:56 +0000 (16:52 -0600)]
mesa: Prepend "-Wl," to linking options
Let mklib ignore -Wl options inside the object list when building
static libraries
Brian Paul [Thu, 30 Apr 2009 22:52:02 +0000 (16:52 -0600)]
i915simple: remove duplicated i915_context.c in C_SOURCES
Michel Dänzer [Thu, 30 Apr 2009 11:21:08 +0000 (13:21 +0200)]
r300: Increase reference count of texture objects referenced by current state.
Fixes a use-after-free reported in
http://bugs.freedesktop.org/show_bug.cgi?id=20539, so this possibly fixes that
bug. It has been confirmed to fix
http://bugs.freedesktop.org/show_bug.cgi?id=17895 .
Michel Dänzer [Thu, 30 Apr 2009 07:39:29 +0000 (09:39 +0200)]
gallium: Add SCons build support for the DRI state tracker.
Dan Nicholson [Thu, 30 Apr 2009 03:33:50 +0000 (20:33 -0700)]
egl: Don't install demodriver
I don't think anyone besides a developer would ever want to use the demo
egl driver. Furthermore, egl would only ever load demodriver if it was
set via EGL_DRIVER in the environment. In that case, I think you can
point it to your mesa source directory.
Jakob Bornecrantz [Wed, 29 Apr 2009 19:44:03 +0000 (20:44 +0100)]
progs/tests: Update ignores
Jakob Bornecrantz [Wed, 29 Apr 2009 19:17:21 +0000 (20:17 +0100)]
progs/tests: Add mipmap_comp for mipmap testing with compressed textures
Tom Fogal [Wed, 29 Apr 2009 16:32:46 +0000 (10:32 -0600)]
Use variable library name in pkg-config output.
Previously the pkg-config output files would contain e.g. `-lGL'
and `-lGLU', even if the user modified their configuration to
build libraries with different names. This modifies the
pkg-config inputs, and corresponding makery, so that modifying the
output library name will cause the appropriate updated name to
appear in the pkg-config `-l' option.
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Dan Nicholson [Wed, 29 Apr 2009 19:11:43 +0000 (12:11 -0700)]
autoconf: Add switch for optional EGL
EGL doesn't build on all platforms, so allow people to opt out.
Dan Nicholson [Wed, 29 Apr 2009 13:49:27 +0000 (06:49 -0700)]
autoconf: Clean up some m4 usage
m4_fatal is equivalent to m4_errprint + m4_exit.
Brian Paul [Wed, 29 Apr 2009 17:56:57 +0000 (11:56 -0600)]
tgsi: added tgsi_check_soa_dependencies() and related debug code (disabled)
The TGSI interpeter operates in SOA style. We need to check for data
dependencies in instructions which read from and write to the same register.
For now just adding some debug code to detect that condition. Actual fixes
to follow.
Brian Paul [Wed, 29 Apr 2009 17:52:06 +0000 (11:52 -0600)]
mesa: added _mesa_check_soa_dependencies() function
This function will check an instruction to see if there's data dependencies
between the dst and src registers if executed in an SOA manner.
Brian Paul [Tue, 28 Apr 2009 20:29:27 +0000 (14:29 -0600)]
softpipe: return PIPE_UNREFERENCED in softpipe_is_buffer/texture_referenced()
This allows the engine demo to run again (avoid crash in VBO code).
This stuff still needs to be revisited someday though...
Keith Whitwell [Tue, 28 Apr 2009 16:50:19 +0000 (17:50 +0100)]
mesa/st: protect internal flushes with FLUSH_CURRENT
Already doing this for driver.flush()
Keith Whitwell [Tue, 28 Apr 2009 16:49:50 +0000 (17:49 +0100)]
mesa/main: protect driver.finish with FLUSH_CURRENT
Already doing this for driver.flush()
Keith Whitwell [Tue, 28 Apr 2009 13:51:11 +0000 (14:51 +0100)]
mesa/st: remove duplicate offset calculation
Keith Whitwell [Tue, 28 Apr 2009 13:50:05 +0000 (14:50 +0100)]
gallium/draw: add ability to print out active pipeline stages
Keith Whitwell [Mon, 27 Apr 2009 14:33:44 +0000 (15:33 +0100)]
mesa/st: translate VERT_ATTRIB_GENERIC8..15 in st_translate_vertex_program
It seems quake4 can hit these attributes sometimes.
Keith Whitwell [Tue, 28 Apr 2009 10:49:55 +0000 (11:49 +0100)]
progs: add fflushes for cygwin
Keith Whitwell [Mon, 27 Apr 2009 18:36:42 +0000 (19:36 +0100)]
util/indices: remove debug prints
Keith Whitwell [Mon, 27 Apr 2009 17:56:26 +0000 (18:56 +0100)]
mesa/st: workaround for crashes in st_copy_texsubimage
Proper fix for this hasn't been identified, but avoid crashing.