Brian Paul [Tue, 26 Jan 2010 17:53:34 +0000 (10:53 -0700)]
mesa: remove redundant _MaxElement computation
Eric added some new code to check if offset < obj_size before computing
_MaxElement but my original code was still present afterward and it
clobbered the _MaxElement value.
Not sure if this came from a bad merge or what.
Brian Paul [Tue, 26 Jan 2010 16:12:32 +0000 (09:12 -0700)]
docs: document Intel, R300 env vars
Jakob Bornecrantz [Mon, 25 Jan 2010 19:07:43 +0000 (20:07 +0100)]
st/xorg: Fix crash on resize with libkms
Igor Oliveira [Mon, 25 Jan 2010 16:53:53 +0000 (09:53 -0700)]
vega: fix incorrect samplers, textures indexes in blend_bind_samplers()
Fixes fd.o bug 25863.
Signed-off-by: Brian Paul <brianp@vmware.com>
Jakob Bornecrantz [Mon, 25 Jan 2010 11:27:47 +0000 (12:27 +0100)]
vmware/xorg: Do buffer round-robin logic differently
Jakob Bornecrantz [Fri, 22 Jan 2010 17:28:40 +0000 (18:28 +0100)]
st/xorg: Improve options and print them to log
Set 2D acceleration to off by default
Get fallback debugging from the Xorg config
Also print if 3D acceleration is enabled
Jakob Bornecrantz [Thu, 21 Jan 2010 20:32:28 +0000 (21:32 +0100)]
vmware/xorg: Export pci_probe function for ugly chain-loading
Jakob Bornecrantz [Thu, 21 Jan 2010 20:23:22 +0000 (21:23 +0100)]
st/xorg: Export helper function for detecting modesetting
Jakob Bornecrantz [Thu, 21 Jan 2010 20:28:14 +0000 (21:28 +0100)]
st/xorg: Fix warning
Brian Paul [Mon, 25 Jan 2010 01:18:17 +0000 (18:18 -0700)]
st/mesa: fix int->uint conversion for negative scissor bound values
Based on a patch by Xavier Chantry <chantry.xavier@gmail.com>:
If x+width or y+height is negative, then maxx or maxy will get a bogus value
when converting that to unsigned. Fix this by setting 0 as minimal value.
This was also triggered by teeworlds, but only with some combination of
resolution and map section. For example upper part of dm2 at 1280x1024.
Brian Paul [Mon, 25 Jan 2010 00:54:44 +0000 (17:54 -0700)]
mesa: move _mesa_debug() call earlier in _mesa_Scissor
Part of a patch from Xavier Chantry <chantry.xavier@gmail.com>
Xavier Chantry [Sat, 23 Jan 2010 16:27:21 +0000 (17:27 +0100)]
st/mesa: fix unsigned/signed breakage in scissor
commit
53174afeeb introduced a portability change that converted GLint x,y
to GLuint. That breaks when x and y are negative, which seems to be allowed,
and which at least one game uses : teeworlds.
Rather than simply reverting the change, it seems possible to convert the
16bit unsigned to GLint so that comparisons are made between signed integers
instead. This hopefully does not break anything while keeping MSVC happy.
Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
Vinson Lee [Sun, 24 Jan 2010 08:17:00 +0000 (00:17 -0800)]
r200: Silence fprintf format warning.
Vinson Lee [Sun, 24 Jan 2010 07:18:33 +0000 (23:18 -0800)]
x86: Do not build read_rgba_span_x86.S on Mac OS X.
read_rgba_span_x86.S uses the pseudo-ops .hidden and .type which are
not recognized on Mac OS X.
Vinson Lee [Sun, 24 Jan 2010 07:12:34 +0000 (23:12 -0800)]
x86: Do not use .hidden pseudo-op on Mac OS X.
The .hidden directive is an unknown pseudo-op on Mac OS X.
Vinson Lee [Sun, 24 Jan 2010 06:59:31 +0000 (22:59 -0800)]
glapi: Do not use .type pseudo-op on Mac OS X.
The .type directive is an unknown pseudo-op on Mac OS X.
Vinson Lee [Sun, 24 Jan 2010 05:43:26 +0000 (21:43 -0800)]
scons: Do not use ld options start-group and end-group on Darwin.
Mac OS X ld does not support these options.
Vinson Lee [Sun, 24 Jan 2010 05:05:58 +0000 (21:05 -0800)]
scons: Define _DARWIN_C_SOURCE on Darwin builds.
Vinson Lee [Sun, 24 Jan 2010 04:56:49 +0000 (20:56 -0800)]
progs/demos: Remove unnecessary header from shadowtex.c.
Vinson Lee [Sun, 24 Jan 2010 04:43:27 +0000 (20:43 -0800)]
r300: Remove unnecessary headers.
Vinson Lee [Sat, 23 Jan 2010 22:33:29 +0000 (14:33 -0800)]
intel: Remove unnecessary headers.
Vinson Lee [Sat, 23 Jan 2010 10:14:56 +0000 (02:14 -0800)]
radeon: Remove unused variable.
Vinson Lee [Sat, 23 Jan 2010 09:54:53 +0000 (01:54 -0800)]
tdfx: Remove unnecessary headers.
Vinson Lee [Sat, 23 Jan 2010 09:40:44 +0000 (01:40 -0800)]
sis: Remove unnecessary headers.
Vinson Lee [Sat, 23 Jan 2010 08:38:14 +0000 (00:38 -0800)]
savage: Remove unnecessary headers.
Vinson Lee [Sat, 23 Jan 2010 08:19:29 +0000 (00:19 -0800)]
mga: Remove unnecessary headers.
Vinson Lee [Sat, 23 Jan 2010 07:53:39 +0000 (23:53 -0800)]
i965: Remove unnecessary headers.
Vinson Lee [Sat, 23 Jan 2010 07:22:16 +0000 (23:22 -0800)]
i915: Remove unnecessary headers.
Brian Paul [Sat, 23 Jan 2010 00:17:01 +0000 (17:17 -0700)]
gallium/util: fix incorrect shift in a4r4g4b4_put_tile_rgba()
Fixes fd.o bug 23313.
Brian Paul [Fri, 22 Jan 2010 22:41:08 +0000 (15:41 -0700)]
mesa: re-implement _mesa_ProgramEnvParameter4fvARB() with memcpy()
This is faster and ensures that NaN floats get stored properly.
Before, NaN values (which might be used with UP2H, UP2US, UP4B and
UP4UB) weren't getting stored properly with gcc -O3.
This is the second part of the fix for the piglit fp-unpack-01 failure
(bug 25973).
Brian Paul [Fri, 22 Jan 2010 22:36:28 +0000 (15:36 -0700)]
mesa: use new fetch_vector1ui() function for 'unpack' GPU instructions
The UP2H, UP2US, UP4B and UP4UB instructions interpret the float
registers as integers. With gcc -O3 some bits were getting mixed up
somewhere. This is part of the fix for the piglit fp-unpack-01 test
failure (bug 25973).
Brian Paul [Fri, 22 Jan 2010 20:07:04 +0000 (13:07 -0700)]
xlib/softpipe: more buffer free fixes
The previous memory leak fix didn't always work properly.
Now check the xm_buffer::smh field (now documented!) to
see if the buffer points to shared memory.
Brian Paul [Fri, 22 Jan 2010 18:45:40 +0000 (11:45 -0700)]
gallium/draw: apply DRAW_PIPE_FLAG_MASK to all vertex elements
Depending on first/last provoking vertex either the first or last
element/index may have the extra DRAW_PIPE_x flags. Mask off those
bits for all vertex elements to be safe (esp. for the quad case).
This may be overly cautious, but it's a cheap operation.
Fixes a segfault caused by large/bogus vertex indexes otherwise.
Brian Paul [Fri, 22 Jan 2010 18:39:19 +0000 (11:39 -0700)]
gallium/draw: added comments, whitespace fixes
Ruediger Oertel [Fri, 22 Jan 2010 14:53:27 +0000 (06:53 -0800)]
Fix PowerPC related typo in spantmp2.h
Signed-off-by: Matthias Hopf <mhopf@suse.de>
Signed-off-by: Brian Paul <brianp@vmware.com>
José Fonseca [Fri, 22 Jan 2010 05:18:25 +0000 (21:18 -0800)]
vmware/core: Update for pipebuffer changes.
In particular, delay patching GMR relocations until the buffers are
validated, since the buffers relative offset can only be established then.
Vinson Lee [Fri, 22 Jan 2010 07:41:57 +0000 (23:41 -0800)]
st/mesa: Remove unnecessary header from st_cb_viewport.c.
Vinson Lee [Fri, 22 Jan 2010 07:24:40 +0000 (23:24 -0800)]
progs/trivial: Remove unnecessary header from tri-fbo-tex-mip.c.
Vinson Lee [Fri, 22 Jan 2010 07:09:06 +0000 (23:09 -0800)]
i915g: Remove unnecessary header.
Vinson Lee [Fri, 22 Jan 2010 07:07:29 +0000 (23:07 -0800)]
pipebuffer: Remove unnecessary header.
Vinson Lee [Fri, 22 Jan 2010 06:57:12 +0000 (22:57 -0800)]
draw: Remove unnecessary headers.
Vinson Lee [Fri, 22 Jan 2010 01:24:07 +0000 (17:24 -0800)]
svga: Remove unused variable.
José Fonseca [Thu, 21 Jan 2010 23:51:37 +0000 (15:51 -0800)]
vmware/core: Flush preemptively the FIFO commands to keep the GMR working set within reasonable bounds.
José Fonseca [Thu, 21 Jan 2010 23:47:52 +0000 (15:47 -0800)]
vmware/core: Put GMR pool size in a define.
José Fonseca [Thu, 21 Jan 2010 23:27:26 +0000 (15:27 -0800)]
vmw/wgl: Update for pipebuffer changes.
This is a minimum change to keep things building and running minimally -- it
might cause applications to fail to allocate buffers due to out of
GMR memory.
A proper update will be commited later.
José Fonseca [Thu, 21 Jan 2010 20:12:47 +0000 (12:12 -0800)]
svga: Remove duplicate code.
José Fonseca [Thu, 21 Jan 2010 22:24:53 +0000 (14:24 -0800)]
svga: Remove unused code.
José Fonseca [Wed, 20 Jan 2010 11:45:17 +0000 (03:45 -0800)]
svga: Don't swap buffers to system memory -- winsys' responsibility.
José Fonseca [Thu, 21 Jan 2010 20:43:40 +0000 (12:43 -0800)]
pipebuffer: Release the lock during map wait. Cleanups.
José Fonseca [Wed, 20 Jan 2010 11:43:53 +0000 (03:43 -0800)]
pipebuffer: Swap buffers out to system memory when running out of memory.
José Fonseca [Thu, 21 Jan 2010 20:13:27 +0000 (12:13 -0800)]
svga: Avoid synchronization issues when doing SW TNL.
José Fonseca [Thu, 21 Jan 2010 17:42:05 +0000 (09:42 -0800)]
mesa: Use pipe_buffer_write_nooverlap where appropriate.
José Fonseca [Thu, 21 Jan 2010 17:38:47 +0000 (09:38 -0800)]
util: Set DISCARD & UNSYNCHRONIZED when uploading vertices sequentially.
José Fonseca [Thu, 21 Jan 2010 17:32:17 +0000 (09:32 -0800)]
util: Use pipe_buffer_write_nooverlap in blits / mipmap generation.
José Fonseca [Thu, 21 Jan 2010 17:30:22 +0000 (09:30 -0800)]
gallium: New inline to write buffers which avoids synchronization.
José Fonseca [Thu, 21 Jan 2010 17:19:25 +0000 (09:19 -0800)]
gallium: Set PIPE_BUFFER_USAGE_DISCARD flag in pipe_buffer_write.
José Fonseca [Thu, 21 Jan 2010 17:13:15 +0000 (09:13 -0800)]
gallium: Remove temporary hack for the absence of a discard flag.
PIPE_BUFFER_USAGE_DISCARD flag now exists.
José Fonseca [Thu, 21 Jan 2010 20:12:33 +0000 (12:12 -0800)]
svga: Follow buffer usage semantics properly.
It's necessary to download buffers from the host always, except if the
buffer is undefined, because:
- just PIPE_BUFFER_USAGE_CPU_WRITE doesn't guarantee all data is written
-- old contents may still pierce through
- PIPE_BUFFER_USAGE_DISCARD refers to a range, not the whole buffer, so
unless we track which parts have been modified and not we still need
to download the data.
Vinson Lee [Thu, 21 Jan 2010 23:05:21 +0000 (15:05 -0800)]
st/xorg: Remove unnecessary headers.
Roland Scheidegger [Thu, 21 Jan 2010 22:30:16 +0000 (17:30 -0500)]
r200: fix CS section size mismatch
Partial fix for fdo bug 25544
The tex handling will still need CS drm changes,
see bug 25544 for more.
Vinson Lee [Thu, 21 Jan 2010 22:31:15 +0000 (14:31 -0800)]
llvmpipe: Remove unnecessary headers.
Vinson Lee [Thu, 21 Jan 2010 20:12:11 +0000 (12:12 -0800)]
svga: Remove unnecessary headers.
Vinson Lee [Thu, 21 Jan 2010 06:52:49 +0000 (22:52 -0800)]
mach64: Remove unnecessary headers.
Vinson Lee [Thu, 21 Jan 2010 06:02:51 +0000 (22:02 -0800)]
i810: Remove unnecessary headers.
Vinson Lee [Thu, 21 Jan 2010 00:27:44 +0000 (16:27 -0800)]
ffb: Remove unnecessary headers.
Brian Paul [Wed, 20 Jan 2010 17:32:13 +0000 (10:32 -0700)]
xlib/softpipe: fix buffer memory leak
Fixes leak caused by window resize.
Brian Paul [Wed, 20 Jan 2010 15:03:46 +0000 (08:03 -0700)]
st/mesa: fix format logic in compatible_src_dst_formats()
We need to consider the user-requested formats, not the actual device-
chosen formats. See code comments for more details.
Brian Paul [Tue, 19 Jan 2010 23:42:43 +0000 (16:42 -0700)]
docs: updated Mesa mailing list info
Jakob Bornecrantz [Wed, 20 Jan 2010 14:53:38 +0000 (14:53 +0000)]
st/xorg: Fic bug and close drm_api at proper place
Vinson Lee [Wed, 20 Jan 2010 08:08:54 +0000 (00:08 -0800)]
softpipe: Remove unnecessary headers.
Vinson Lee [Wed, 20 Jan 2010 06:47:03 +0000 (22:47 -0800)]
i915g: Remove unnecessary headers.
Jakob Bornecrantz [Tue, 19 Jan 2010 21:26:01 +0000 (22:26 +0100)]
svga: Do a more propper creation of textures from handles
Jakob Bornecrantz [Tue, 19 Jan 2010 22:29:56 +0000 (23:29 +0100)]
st/xorg: Don't leak BusID buffer
Jakob Bornecrantz [Tue, 19 Jan 2010 17:14:19 +0000 (17:14 +0000)]
st/xorg: Pass kernel driver name to drmOpen
Jakob Bornecrantz [Tue, 19 Jan 2010 16:46:28 +0000 (16:46 +0000)]
st/drm: Expose kernel driver name
Based on patch by Chia-I Wu <olvaffe@gmail.com>
Expose the name of the kernel driver as accepted by drmOpenByName.
Ben Skeggs [Mon, 11 Jan 2010 01:41:47 +0000 (11:41 +1000)]
st/dri: update dri2 drawables when viewport is changed
Fixes gnome-shell on nouveau, as well as window resize with various
other applications.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Luca Barbieri [Sun, 17 Jan 2010 07:19:19 +0000 (23:19 -0800)]
glx: Set GL context to null in __glXSetCurrentContextNull
__glXSetCurrentContextNull currently does not set the GL context to null
in the direct rendering case.
This can result in a segfault trying to flush an invalid old context
in glXMakeCurrent.
This fixes a crash starting the Unigine demos (they still don't work due
to missing extensions though).
Signed-off-by: Brian Paul <brianp@vmware.com>
José Fonseca [Tue, 19 Jan 2010 14:13:44 +0000 (06:13 -0800)]
wgl: Check for PIPE_TEXTURE_USAGE_DISPLAY_TARGET support in exported color pixel formats.
Since all formats we export have PFD_DRAW_TO_WINDOW flag.
José Fonseca [Tue, 19 Jan 2010 14:12:10 +0000 (06:12 -0800)]
wgl: Don't export pure-stencil pixel formats.
They cause DCT's conform to always fail.
José Fonseca [Tue, 19 Jan 2010 13:39:18 +0000 (05:39 -0800)]
softpipe: Fix vertex buffer memory leak.
Vinson Lee [Tue, 19 Jan 2010 08:45:16 +0000 (00:45 -0800)]
unichrome: Remove unnecessary headers.
Vinson Lee [Tue, 19 Jan 2010 06:50:08 +0000 (22:50 -0800)]
mesa: Remove unnecessary header from attrib.c.
Vinson Lee [Tue, 19 Jan 2010 06:45:23 +0000 (22:45 -0800)]
mesa: Remove unnecessary header from blend.c.
Vinson Lee [Tue, 19 Jan 2010 06:17:03 +0000 (22:17 -0800)]
mesa: Remove unnecessary headers from buffers.c.
Vinson Lee [Tue, 19 Jan 2010 05:56:58 +0000 (21:56 -0800)]
mesa: Remove unnecessary header from convolve.c.
Vinson Lee [Tue, 19 Jan 2010 05:41:31 +0000 (21:41 -0800)]
mesa: Fix typo of 'unknown' in debug.c.
Vinson Lee [Tue, 19 Jan 2010 05:37:18 +0000 (21:37 -0800)]
mesa: Remove unnecessary headers from debug.c.
Vinson Lee [Tue, 19 Jan 2010 05:34:25 +0000 (21:34 -0800)]
mesa: Remove unnecessary header from depthstencil.c.
Vinson Lee [Tue, 19 Jan 2010 05:31:02 +0000 (21:31 -0800)]
mesa: Remove unnecessary headers from dlist.c.
Vinson Lee [Tue, 19 Jan 2010 05:22:47 +0000 (21:22 -0800)]
mesa: Remove unnecessary header from drawpix.c.
Vinson Lee [Tue, 19 Jan 2010 05:17:45 +0000 (21:17 -0800)]
mesa: Remove unnecessary header from enable.c.
Vinson Lee [Tue, 19 Jan 2010 05:14:04 +0000 (21:14 -0800)]
mesa: Remove unnecessary headers from fbobject.c.
Vinson Lee [Tue, 19 Jan 2010 05:07:53 +0000 (21:07 -0800)]
mesa: Remove unnecessary header from formats.c.
Vinson Lee [Tue, 19 Jan 2010 05:02:19 +0000 (21:02 -0800)]
mesa: Remove unnecessary header from image.c.
José Fonseca [Tue, 19 Jan 2010 03:33:13 +0000 (19:33 -0800)]
softpipe: Skip depth testing for PIPE_S8_UNORM.
José Fonseca [Tue, 19 Jan 2010 03:32:36 +0000 (19:32 -0800)]
mesa: Handle PIPE_FORMAT_B8G8R8X8_UNORM.
José Fonseca [Thu, 14 Jan 2010 15:07:20 +0000 (15:07 +0000)]
pipebuffer: Ensure buffer size/alignment is not zero.
José Fonseca [Thu, 14 Jan 2010 15:06:48 +0000 (15:06 +0000)]
svga: Ensure buffer size/alignment is not zero.
Vinson Lee [Tue, 19 Jan 2010 03:32:51 +0000 (19:32 -0800)]
mesa: Remove unnecessary headers from lines.c.
Vinson Lee [Tue, 19 Jan 2010 03:23:47 +0000 (19:23 -0800)]
mesa: Remove unnecessary header from mipmap.c.