Ian Romanick
e33121b2d8
mesa: set version string to 7.7.1-rc2
2010-03-22 18:15:53 -07:00
Pauli Nieminen
415d0326bb
r200: Fix emit size prediction to account elt splitting.
...
Emit sizes prediction didn't account for render splitting in
hwtnl path.
2010-03-21 23:32:14 +02:00
Pauli Nieminen
7e24ce2d9b
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.
2010-03-21 23:30:23 +02:00
Pauli Nieminen
2ae754b7b9
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.
2010-03-21 20:23:01 +02:00
Pauli Nieminen
501156b36b
r200: Fix mixed indetion in r200TclFallback.
2010-03-21 20:22:56 +02:00
Pauli Nieminen
4ff3244457
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.
2010-03-21 12:42:10 +02:00
Michel Dänzer
3889556d70
Revert "Revert "mesa/st: Make ST_SURFACE_DEPTH index consistent with mesa's BUFFER_DEPTH.""
...
This reverts commit 52d83efdbc
.
The fix it reverted should be fine with the two previous fixes.
2010-03-19 17:32:54 +01:00
Brian Paul
6412046f65
st/mesa: s/BUFFER_FRONT_LEFT/surfIndex/
...
(cherry picked from commit 5d5c524cbe
)
2010-03-19 17:20:26 +01:00
Brian Paul
6e96cea6e2
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.
(cherry picked from commit c472ce5302
)
2010-03-19 17:20:19 +01:00
Ian Romanick
3a3ef3d6c9
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 .
(cherry picked from commit 062a208814
)
2010-03-18 18:23:21 -07:00
Ian Romanick
98aed6dc69
intel: Correct value of S0_VB_OFFSET_MASK to match hardware docs.
...
(cherry picked from commit 689e4b5541
)
2010-03-18 17:31:22 -07:00
Ian Romanick
d3a607f889
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 .
(cherry picked from commit fda5078324
)
2010-03-18 15:39:00 -07:00
Thomas Hellstrom
00e41e007e
st/xorg: Fix Xv cliprect scaling.
...
Due to a quantization error, different cliprects of scaled video windows may
not have identical x / y scale.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com >
2010-03-13 20:32:00 +01:00
Ian Romanick
6624845a5d
mesa: set version string to 7.7.1-rc1
2010-03-16 10:26:52 -07:00
Matthew W. S. Bell
c9c54180e4
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:38:32 -04:00
José Fonseca
93e77b0028
mesa: List Quake3 extensions first.
...
Quake3 truncates the extension string, and GL_EXT_compiled_vertex_array
wasn't being detected, making it very slow.
This is a quick fix. The IMHO best way to address this in a more general
fashion is to sort by year.
2010-03-13 10:41:32 +00:00
Keith Whitwell
0c9e8e6c6e
mesa: Fix memory leak in decompress-with-blit.
...
(cherry picked from commit f05a4ee6f2840590c90da4be2fe5c6295410a5af)
2010-03-13 10:40:56 +00:00
Michel Dänzer
c50477c255
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.
2010-03-12 18:24:34 +01:00
Jakob Bornecrantz
3bf13656d3
st/xorg: Include cursorstr.h
2010-02-06 16:58:32 +00:00
Brian Paul
fa4083d38b
docs: updates to 7.7.1 release notes
2010-03-10 14:14:04 -07:00
Brian Paul
d311ded31d
gallium/util: added surface dump code for unix
2010-03-10 10:39:46 -07:00
Brian Paul
34f0207161
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).
2010-03-10 10:39:45 -07:00
Brian Paul
8d3f629a13
st/mesa: fix incorrect glDrawPixels into FBO
...
We weren't inverting the textured quad when drawing into an fbo.
2010-03-10 10:39:45 -07:00
Thomas Hellstrom
b98ef495d4
st/xorg Avoid advertizing rotation / reflection support.
...
We don't support it yet since we don't implement the shadow allocate
functions.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com >
2010-03-06 15:52:31 +01:00
Michel Dänzer
21c91b410a
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.
2010-03-10 13:16:00 +01:00
Thomas Hellstrom
a8f3b3f88a
st/xorg, vmware: Make throttling configurable.
...
The xorg state tracker gets two new options to let the user choose
whether to enable / disable dirty throttling and swapbuffer throttling.
The default value of these options are enabled, unless the winsys
supplies a customizer with other values. The customizer record has been
extended to allow this, and also to set winsys-based throttling on a per-
context basis.
The vmware part of this patch disables the dirty throttling if the kernel
supports command submission throttling, and also in that case sets kernel
based throttling for everything but swapbuffers. The vmware winsys does not
set throttling per context, even if it theoretically could, but instead
sets throttling per screen. This should perhaps be changed, should the
xorg state tracker start to use multiple rendering contexts. Kernel throttling
is off by default for all new screens/contexts, so the dri state tracker
is not affected.
This significantly improves interactivity of the vmware xorg driver.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com >
2010-03-06 11:03:55 +01:00
Thomas Hellstrom
e8a8c5e339
svga: Add a winsys callback to get the svga_winsys_context
...
The winsys may need to extract the svga_winsys_context from a
pipe_context. Add a function to enable that functionality.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com >
2010-03-06 11:03:54 +01:00
Keith Whitwell
7941d31ee6
svga: Don't do culling while the software pipeline is active.
...
It does it for us, and additionally introduces potentially
back-facing triangles.
2010-03-09 19:19:56 +01:00
Brian Paul
842351dd76
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.
(cherry picked from commit e1762fb870
)
2010-03-08 11:40:40 -07:00
Brian Paul
d74929702f
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.
(cherry picked from commit 80dc54e308
)
2010-03-08 11:40:25 -07:00
Brian Paul
1e431f0454
mesa: s/GL_DEPTH_STENCIL/GL_DEPTH_COMPONENT/ for MESA_FORMAT_Z16 renderbuffer
...
MESA_FORMAT_Z16 has no stencil bits.
(cherry picked from commit 614f490ca9
)
2010-03-08 10:00:17 -07:00
Alex Deucher
4cc8d1d79f
r600: recalculate point size, if point min/max size changes
2010-03-08 11:31:06 -05:00
Alex Deucher
3d2bc6848a
r600: no need to flush on context init
2010-03-08 11:30:54 -05:00
Maciej Cencora
d5327538e7
r300: recalculate point size, if point min/max size changes
...
Fixes two wine d3d9 unit tests
2010-03-08 11:29:12 -05:00
Maciej Cencora
86ac140937
r300: no need to flush on context init
2010-03-08 11:28:57 -05:00
Maciej Cencora
b584e780ab
r300: remove unnecessary code
...
_tnl_UpdateFixedFunctionProgram is already called in r300_draw.c
2010-03-08 11:28:39 -05:00
Alex Deucher
981e8a2087
r600: add new rs880 pci id
2010-03-03 14:11:10 -05:00
Brian Paul
72d380b363
glx: replace assertion with conditional
...
See fd.o bug 26832.
2010-03-02 07:38:12 -07:00
Dave Airlie
cf8af9bcf1
r600: fix blender picking.
...
This fixes the sw fallback for GL_SELECT picking modes.
Fixes object picking blender + depthpick test
http://bugs.freedesktop.org/show_bug.cgi?id=26419
Signed-off-by: Dave Airlie <airlied@redhat.com >
2010-03-02 14:14:47 +10:00
Alex Deucher
7123f3d77a
r600: enable OQ on rv740 on drms with working pipe config
2010-02-26 15:39:40 -05:00
Klaus Schnass
2edb1b9534
r600: fail to validate unsupported texture formats
2010-02-26 15:39:17 -05:00
Markus Fleschutz
69334d6784
glx: fix incorrect array stack memory allocation
...
The array stack space wasn't allocated to the proper size. Fixes out of
bounds memory writes when the client/array stack depth exceeds one.
See fd.o bug 26768.
2010-02-26 10:38:21 -07:00
Brian Paul
61482ddc1c
mesa: fix _BaseFormat assignment in _mesa_soft_renderbuffer_storage()
...
The rb->InternalFormat field will be set by the caller if the allocation
succeeds. Until then, this field's value can't be used. Fixes a failed
assertion with FlightGear.
(cherry picked from commit fe25476c04
)
2010-02-26 09:14:12 -07:00
Brian Paul
b0e84e22d5
mesa: use simplified _BaseFormat value in render-to-texture code
...
Fixes fd.o bug 26762.
(cherry picked from commit c9e8ff1976
)
2010-02-26 09:10:27 -07:00
Jakob Bornecrantz
c0e8d443fe
st/xorg: Re-enable crtc on resize
2010-02-25 16:52:02 +01:00
Jakob Bornecrantz
b95d4cd680
st/xorg: Fix copy-topy
2010-02-25 16:52:02 +01:00
Brian Paul
293f4d51b4
dri: remove old assertion (see bug 26734)
2010-02-24 14:04:26 -07:00
Alex Deucher
f0e99179bc
r600: update state count for CB_COLOR0_FRAG & CB_COLOR0_TILE relocs
2010-02-24 12:03:10 -05:00
Jerome Glisse
69a94e1452
r6xx/r7xx: emit relocation for FRAG & TILE buffer
...
FRAG & TILE buffer are unused but still they need
to be associated with a valid relocation so that
userspace can't try to abuse them to overwritte
GART and then try to write anywhere in system
memory.
2010-02-24 12:03:00 -05:00
Dave Airlie
bc7e12e5e3
radeon/r200: fix bad state emission causes kernel to do bad depth clear
...
The kernel lets you clear depth without getting a depth offset
from userspace, mesa used to emit state before clear, but that got
lost in the refactoring, which made the kernel bug show up. Fix
mesa driver to emit the state properly now.
cherry-pick + squash master commits.
Signed-off-by: Dave Airlie <airlied@redhat.com >
2010-02-24 19:16:13 +10:00
Jakob Bornecrantz
7accf8ced6
vmware/xorg: Bump to match vmware driver
2010-02-22 20:07:06 +01:00
Jakob Bornecrantz
52d83efdbc
Revert "mesa/st: Make ST_SURFACE_DEPTH index consistent with mesa's BUFFER_DEPTH."
...
This reverts commit 9d17ad2891
.
Fun stuff so fixing exposes another bug which I'm having trouble
tracking down. So for now I'm just going to revert this untill
I can fix the real bug. Sorry about this.
2010-02-22 19:37:09 +01:00
Jakob Bornecrantz
1702db3a35
st/xorg: Make resize fail gracefully
2010-02-22 19:34:56 +01:00
Jakob Bornecrantz
fa6eee135e
st/xorg: Obey max {width|height} from kernel and Gallium
2010-02-22 19:34:56 +01:00
José Fonseca
b5fa760972
svga: Upload user buffers only once.
2010-02-22 19:38:10 +00:00
José Fonseca
69cf45cdae
svga: Fix the guest offset of piecewise buffer DMAs.
...
It was being erroneously set equal to the host offset, but it should be
zero.
2010-02-22 19:38:08 +00:00
José Fonseca
f5ffbe0bc3
svga: Emit a scalar rcp in shadow maps.
...
Small improvement in Lightsmark 2008.
2010-02-22 19:38:05 +00:00
José Fonseca
46d8ca023d
svga: Don't emit zero writemasks.
...
This fixes a regression with Lightsmark, where more compact TGSI from Mesa
was causing a zero mask MOV to be emitted for shadow map compare, causing
problems in some backends.
Add a few more assertions to catch cases like this.
2010-02-22 19:38:04 +00:00
José Fonseca
9bef69782d
tgsi: Report an error when a destination has an empty writemask.
2010-02-22 19:38:01 +00:00
Xavier Chantry
b0e5dcb859
glxinfo: Fix User error in glGetProgramivARB
...
glxinfo needed fixing after commit 4bccd69
.
Move fragment program only parameters into their own list
so that they are not queried for a vertex program.
Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com >
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-02-22 08:53:03 -07:00
Brian Paul
bcd561c667
st/mesa: change viewport Z scale/bias for glBitmap/glDrawPixels
...
This fixes incorrect Z position of glBitmap, glDraw/CopyPixels for the
svga driver. Now we use 0.5, 0.5 as is typical for ordinary 3D rendering.
2010-02-22 08:01:28 -07:00
José Fonseca
c98eced9ae
scons: Control caching via new SCONS_CACHE_DIR environment variable.
...
This serves several purposes:
- disable caching in situations were is it useless or undesired
- share caches among all trees
- simplify purging the cache (when it's a single location)
- move the cache out of the tree, since that slows downs IDEs considerably
To retain previous behavior just define do
export SCONS_CACHE_DIR=$PWD/build/cache
before invoking scons.
2010-02-22 11:28:55 +00:00
Brian Paul
13cbb5fff6
st/mesa: Add checks for ST_SURFACE_x vs MESA_BUFFER_x
...
The ST_SURFACE_x values should match the Mesa BUFFER_x values.
Added some assertions to prevent future mix-ups.
2010-02-21 12:38:46 +01:00
Thomas Hellstrom
dd8d78c908
st/xorg: Encapsulate all customizable stuff in a separate class.
...
This avoids exposing the ms driver structure to the winsys,
and nicely encapsulates driver customizable stuff.
In the future more things might be customizable by the winsys, like
throttling, 3D readback etc.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com >
2010-02-21 12:25:33 +01:00
Thomas Hellstrom
9d17ad2891
mesa/st: Make ST_SURFACE_DEPTH index consistent with mesa's BUFFER_DEPTH.
...
Some st functions assume that they are identical.
2010-02-21 10:39:38 +01:00
Brian Paul
d437d905e6
softpipe: fix depth testing problems
...
The optimized Z-test functions assumed that the array of incoming quads
are adjacent, but that's not always true. The fragment shader can cull
intermediate quads, for example.
Now these Z-test functions can cope with non-adjacent quads. A little bit
of performance is probably lost, but it's probably not worth worring about.
This fixes broken glBitmap() Z testing, among other things.
2010-02-18 16:47:27 -07:00
Jon TURNEY
551c96979e
mklib: Teach mklib to fail build if link fails on cygwin
...
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk >
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-02-18 12:41:30 -07:00
Jon TURNEY
c1a4f249f1
configure: PTHREADS should be defined on cygwin, as well
...
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk >
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-02-18 12:41:08 -07:00
José Fonseca
18ff85e91d
svga: Upload the dirty ranges instead of the whole buffer.
2010-02-18 18:22:31 +00:00
José Fonseca
12617c7e30
svga: Break uploads of big buffers into smaller pieces.
...
Fixes crash in Homeworld2 which tries to create a 14MB buffer, because we
now avoid creating GMR buffers larger than 8MB to ensure progress given
we have only a 16MB pool.
2010-02-18 18:22:31 +00:00
José Fonseca
5dbf44953c
svga: Note ranges even when there is no hardware buffer around.
...
Not having a hardware buffer around doesn't change the fact that the
range is dirty and needs to be uploaded eventually.
2010-02-18 18:22:31 +00:00
José Fonseca
a51d638ff3
svga: Further cleanup/comment svga buffer code.
...
Just cosmetic changes -- no behavior change.
2010-02-18 18:22:30 +00:00
José Fonseca
770945cff4
svga: Temporarily create a sw vertex buf when failed to create a hw buf.
...
Many apps don't check the return of map buffer so it is better not to
fail.
2010-02-18 18:22:30 +00:00
Jakob Bornecrantz
eaa4066bfc
vmware/xorg: Export modinfo just as the other vmware X drivers does
2010-02-18 17:07:32 +01:00
Jakob Bornecrantz
46cf606cd3
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.
Not 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.
2010-02-18 17:07:32 +01:00
Jakob Bornecrantz
a69a7b9688
st/xorg: A bit more debugging info
2010-02-18 16:13:18 +01:00
Jakob Bornecrantz
eb7590a0d9
st/xorg: Make default of debugging fallbacks smart
...
Set it to the same as 2d acceleration
2010-02-18 16:13:18 +01:00
Jakob Bornecrantz
86870a691c
drm/vmware: Latest interface changes are backwards incopatible
...
Since the execbuffer change actually changed size off the ioctl
struct and not just a reuse of padded bits, we can't support
old kernels as easily as the scanout change was.
2010-02-18 16:13:18 +01:00
Brian Paul
7c34c237a2
swrast: fix left side clipping
...
Fixes bug 26623. Original patch was submitted by Mathias Frohlich
and modified by Brian.
2010-02-18 09:37:58 -07:00
José Fonseca
13cd4298fb
mesa: Take back some assertions.
...
It seems there are still some places where draw can happen with mapped
buffers... Remove the assertions since there is not much more than can
be done at this moment.
This partially reverts commit af2023e31c
.
2010-02-17 20:02:32 +00:00
José Fonseca
3b724f91c5
svga: Remove unused buffer download code.
...
Unnecessary now that we never destroy buffer storage.
2010-02-16 21:24:38 +00:00
José Fonseca
2077f375c7
pipebuffer: Don't synchronize when checking for buffer overflows.
...
To avoid masking synchronization issues in debug builds.
2010-02-16 21:00:15 +00:00
Michal Krol
055265b0a3
svga: Translate point_sprite rasterizer state.
2010-02-16 19:53:13 +01:00
Mike Stroyan
3094adb3ca
mesa: Lock mutex around _mesa_HashLookup linked list chase.
...
Remove const qualifier from _mesa_HashLookup() table parameter to
avoid LOCK/UNLOCK warnings in the function body.
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-02-16 08:18:12 -07:00
Mike Stroyan
7c7247ddbf
mesa: Test for failed malloc in _mesa_HashInsert.
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-02-16 08:17:06 -07:00
José Fonseca
af2023e31c
vbo: Ensure vertices are always unmapped before the context is flushed.
...
Purpose is two fold:
- when doing user-space memory management mapping a buffer stored in the
graphics aperture effectively pins it there, increasing the likelyhood
of failure of validating other buffers when flushing
- certain hardware/platform combinations do not allow a buffer to be
simultaneously mapped and validated
This fixes assertion failures in HL Uplink with the svga driver, where
vbo was holding a map to a buffer which was also referred in the command
stream.
Note: this a non-invasive fix and shouldn't be just cherry-picked into
master as-is -- a cleaner fix for this problem should be searched.
2010-02-16 13:24:01 +00:00
Michal Krol
2eedbc94c2
slang: Fix handling of if/elif/else cases.
...
Once if/elif evalutes to true, all subsequent conditions are always false.
2010-02-16 10:34:07 +01:00
José Fonseca
672f6bb545
wgl: Be lenient when sharing contexts.
...
My first reading of MS docs was wrong. It says:
All rendering contexts of a shared display list must use an identical
pixel format. Otherwise the results depend on the implementation of
OpenGL used.
That is, it is OK to share contexts with different pixel formats.
Adobe Premiere Pro tries to do that: share lists between a rgbx8 and a
rgba8 pixel format.
2010-02-15 19:34:38 +00:00
Brian Paul
ab6bcef99a
docs: document glMultiDrawElements() fix
2010-02-15 08:56:39 -07:00
Brian Paul
c5a4cfb03f
vbo: fix broken glMultiDrawElements()
...
Seems to be a regression from commit 60b08eb1fd
.
2010-02-15 08:52:48 -07:00
Thomas Hellstrom
df944efdbf
st/xorg, vmware/xorg: Fix xnfcalloc arguments.
...
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com >
2010-02-15 14:26:25 +01:00
Brian Paul
1ff9cd5079
softpipe: fix broken cubemap / mipmap selection code
...
This is a quick-fix for the time being...
The per-face mipmap LOD computation was invalid at cube edges. In
mip_filter_nearest/linear() we were trying to compute LOD using
texcoords that were sometimes indexes into different cube faces.
The subtraction used to compute the partial derivatives basically
gave random values, so the LOD was unpredictable. This fix simply
uses the same cube face for all four pixels in the quad. The per-
face texcoords all reference the same cube face so the partial
deriviates are computed properly.
A more elaborate fix would involve computing the LOD at the same
time as we choose the cube faces. But for now, this solution works
well and allows the piglit/cubemap test to pass.
2010-02-13 17:45:05 -07:00
José Fonseca
4a2b54cbdb
mesa: Export GL_EXT_texture_cube_map.
...
Still used by some applications.
2010-02-13 15:10:57 +00:00
José Fonseca
6bd6a15ab3
wgl: Implement wglSwapMultipleBuffers.
2010-02-13 15:10:57 +00:00
José Fonseca
c1a5c9bb4c
svga: Fix texture border color.
...
Also opposite ordering.
2010-02-13 15:10:57 +00:00
Brian Paul
b3c7dc6ff2
st/mesa: restore draw rasterization stage after rasterpos
...
This fixes invalid calls to rastpos_point/line/tri() that can occur
when glRasterPos() is called while in feedback or selection mode.
2010-02-12 17:18:21 -07:00
José Fonseca
a1025ec041
svga: A few more tweaks to blend color state emission.
2010-02-12 23:17:04 +00:00
José Fonseca
3a4068474c
svga: Clamp max cube texture levels to supported max 2d levels.
2010-02-12 21:31:18 +00:00
José Fonseca
1ae976be4a
svga: Report the 2d/3d texture sizes supported by the host.
2010-02-12 21:31:14 +00:00
Roland Scheidegger
b685927156
svga: emit blend color
2010-02-12 22:12:55 +01:00
Zack Rusin
df0c8d029d
st/dri: don't expose visuals we'll have trouble supporting
...
without getBuffersWithFormat some visuals will just cause headaches (crashes),
so if we're running on an older system simply don't advertise them.
2010-02-12 15:49:03 -05:00
Zack Rusin
3477dc4c48
st/dri, st/xorg: fix buffers that have attachements of different depth
...
we actually need to specify the formats for different attachements, otherwise
if the color buffer is 24bpp and the app asks for 16bpp depth buffer than
we end up fetching the depth from the drawable which is 24bpp and end up
creating the wrong depth buffer. use the new getBuffersWithFormat extension
to pass the depth correctly.
2010-02-12 15:48:52 -05:00
Andre Maasikas
0426bccadd
r600: be more exact in vb size calculation
...
to make kernel cs checker happier, last attribs don't need full stride of
space. Calculate as count-1*stride + size of attrib
2010-02-12 10:21:44 -05:00
Andre Maasikas
841333cd21
r600: support GL_SHORT attributes
...
normalized seems to work with this setting.
2010-02-12 10:21:23 -05:00
José Fonseca
e541dceb67
wgl: Go into dormant state when DLL is unloaded unclealy.
...
When our DLL is unloaded, even if we leave the data structures in memory
for sake of future calls, the MS CRT will destroy the heap. Instead we
make all calls no-ops by setting stw_dev to NULL.
2010-02-12 13:59:16 +00:00
José Fonseca
fea7a70a1a
scons: Target Windows7.
2010-02-12 13:22:59 +00:00
José Fonseca
426f607aaa
wgl: Do not reach out and destroy contexts on cleanup.
...
Simply skip cleanup when contexts are still active.
This addresses two issues:
- in some situations the ICD DLL may be unloaded before the DLL that is
using GL contexts is, so we may receive GL calls after stw_cleanup.
- when aborting (exception, or control-c) the contexts may have been left
in an inconsistent state and attempting to destroy can cause
unpredictable results.
2010-02-12 11:03:33 +00:00
Brian Paul
408f32dc16
svga: check min_index, max_index before assertions
...
It's possible for min_index and max_index to be ~0 if the min/max
values were not actually set or computed in the state tracker.
Skip some assertions in that case.
This only effects the debug build error checking.
2010-02-11 16:47:34 -07:00
José Fonseca
94028edfc5
gdi: Never fail at DLL load time.
...
Windows doesn't really expect things to fail at this point -- it
will try many times until it finally gives up, worse, something bad
happens.
The WGL state tracker will gracefully decline to do work even when it
is loaded.
2010-02-11 16:38:16 +00:00
José Fonseca
7fec5f88a5
wgl: Fail gracefully whenever 3D could not be enabled for some reason.
2010-02-11 16:38:13 +00:00
Michal Krol
67007670bb
mesa: Enable true refcounting for NullBufferObj.
...
This object can be shared with another context, so we cannot just
delete it when the owning context is being destroyed.
Ensuring that buffer objects are properly refcounted guarantees
NullBufferObj is destroyed when all references to it are removed.
2010-02-10 14:12:11 +01:00
Michal Krol
e8865f199d
mesa: Protect buffer objects reference counting with a mutex.
2010-02-10 14:12:10 +01:00
Zack Rusin
2d3262d47d
st/xorg: fix a silly offset bug in xv
...
we were multiplying the difference in the wrong direction.
2010-02-09 21:15:22 -05:00
Thomas Hellstrom
3470d821ba
vmware: Update vmwgfx_drm.h to kernel version.
...
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com >
2010-02-09 22:54:15 +01:00
Brian Paul
0371956d66
docs: fix typo: s/osdemo/osdemos/
2010-02-09 11:21:15 -07:00
Jakob Bornecrantz
45c4addea7
vmware/core: Support drm interface version 1.0.0
2010-02-06 01:30:29 +01:00
Jakob Bornecrantz
1eba0eb37d
vmware/core: Use correct flags in scanout code
2010-02-06 01:29:47 +01:00
Dave Airlie
d87fb5e003
radeon: fix UMS since stp addition.
...
UMS doesn't need the STP atom.
Signed-off-by: Dave Airlie <airlied@redhat.com >
2010-02-08 12:07:04 +02:00
Pauli Nieminen
4be7922a8e
r200: Fix UMS notto emit stp.
...
Polgon stipples are handled by kernel in UMS. Mark the
state as never to be emited for UMS.
2010-02-08 12:07:04 +02:00
Eric Anholt
a1cac0732b
intel: Check aperture size when doing a blit glClear.
...
Fixes failure in cairo-gl firefox-planet-gnome.
(cherry picked from commit 67e5fd7397
)
Conflicts:
src/mesa/drivers/dri/intel/intel_blit.c
2010-02-06 17:45:34 +01:00
Eric Anholt
fb32e0fcc5
intel: Respect texture tiling when doing a PBO blit teximage upload.
...
Bug #26008 . Fixes piglit pbo-teximage-tiling-2.
(cherry picked from commit 22bbc97994
)
2010-02-06 17:45:34 +01:00
Eric Anholt
9564a6fa13
intel: Set the region's tiling to none when attaching a PBO to a region.
...
Note that when detaching the PBO from the region and making a new BO
for the region, we don't make it tiled even if the region originally
was.
Fixes piglit pbo-teximage-tiling.
(cherry picked from commit f20e83210e
)
2010-02-06 17:45:34 +01:00
Eric Anholt
0b9990b2fd
intel: Fix PBO blit ReadPixels from an FBO.
...
Bug #25921 -- clutter PBO usage gave unreliable results.
(cherry picked from commit 63b10e8fe7
)
Conflicts:
src/mesa/drivers/dri/intel/intel_pixel_read.c
2010-02-06 17:16:51 +01:00
Eric Anholt
8ce99c85e7
i965: Fix loads of non-relative-addr constants after a reladdr load.
...
Fixes piglit vp-arl-constant-array-huge-overwritten.
(cherry picked from commit d5b964234c
)
2010-02-06 17:08:53 +01:00
Jakob Bornecrantz
a2c402ba53
vmware/core: Handle new scanout field
2010-02-06 01:34:12 +01:00
Jakob Bornecrantz
1ceb906c12
vmware/core: Update header to latest version
2010-02-06 01:34:12 +01:00
Zack Rusin
fb1fe8e76f
gallium/tgsi: fix soa dependencies in mul and cmp instructions
...
master has this done in a lot nicer way, this is a simple patch to
stop the bleeding in a minimally intrusive manner.
2010-02-05 19:32:01 -05:00
Zack Rusin
f8b05566aa
gallium/python: support two more formats in retrace dumps
...
dump PIPE_FORMAT_R8G8B8A8_UNORM and PIPE_FORMAT_R16G16B16_SNORM formats.
2010-02-05 19:25:01 -05:00
Zack Rusin
a6148b8eba
gallium/draw: fix overflowing element indices
...
we piggy back flags in the top four bits of the element indices, so if
the maximum index stored in any of the elements is greater than
sizeof(ushort) - sizeof(flags we piggy back) then we overflow. fix it by
simply falling back to the slow path if we notice the overflow.
2010-02-05 19:25:01 -05:00
Brian Paul
64be837b0b
st/mesa: allow negative index for PROGRAM_STATE_VAR
...
The piglit vp-address-01 test uses negative address-relative
offsets. In this test we're indexing into PROGRAM_STATE_VAR
which, in turn, contains references to ENV vars.
We previously fixed this issue for PROGRAM_CONSTANT.
piglit/vp-address-01 (the version from Feb 5) passes now.
2010-02-05 14:54:00 -07:00
Brian Paul
e070c1d183
tgsi: disable inf/nan checking
...
Inf/NaN can happen normally. Only check for those values
when we need to debug something.
2010-02-05 14:48:42 -07:00
Tom Fogal
e6ee4b49c4
docs: Fix a typo in mesa3d.org HTML.
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-02-05 13:17:37 -07:00
Tom Fogal
e65029e9b3
osmesa: Add OSMesaColorClamp and OSMesaGetProcAddress to symbol defs.
...
Without this patch, the two symbols get an underscore prepended
and an "@4" appended when compiling with VC8.
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-02-05 13:15:33 -07:00
Brian Paul
3ca6cb3440
softpipe: fix bug in perspective corrected interpolants for lines
...
Thanks to Michal for finding this.
This will get fixed on the gallium-cylindrical-wrap branch and
then merged to master.
2010-02-05 12:57:54 -07:00
Pauli Nieminen
34b36277b7
r100: Add the polygon stipple state to the state list.
...
This fixes glean paths test case.
2010-02-05 11:28:01 +02:00
Pauli Nieminen
c8ea0212fe
r200: Add the polygon stipple state to the state list.
...
This fixes glean paths test case.
2010-02-04 23:56:37 +02:00
Pauli Nieminen
7d6cbcdd9a
swrast/sse: Fix _mesa_sse_transform_pointsX_3d_no_rot
...
PXOR user in code were causing the lowest SP float register to have NaN
values which made all math operations in that slot fail. Correct istruction
to clear float registers is XORPS which handles single precission floats
correctly.
Fixes progs/tests/fog in swrast SSE mode.
Now the correct commit instead of 9d9c1f17dc
which is not even close
of correct fix for the bug.
2010-02-04 13:07:04 +02:00
Pauli Nieminen
9d9c1f17dc
Revert "mesa: fix transform_points_3d_no_rot using undefined values in %xmm0"
...
This reverts commit 4c31632817
.
2010-02-04 05:00:02 +02:00
Brian Paul
f1afb352da
scons: add another prefix for mingw32 on Fedora
2010-02-03 11:46:36 -07:00
Brian Paul
e4c3abbf55
tgsi: fix XPD when dst reg is a src reg
...
Store XPD results in temporaries before writing to the dest register.
This issue has already been fixed in Mesa/master for XPD (and all
other instructions?).
Fixes progs/demos/bump.c when using TGSI interpreter (GALLIUM_NOSSE=1).
A new glean/glsl1 test has been added to test this case.
2010-02-03 08:17:37 -07:00
Keith Whitwell
141b5775c0
svga: fix TXD and TXL opcode translation
2010-02-02 18:01:52 +00:00
Keith Whitwell
c0d5f1d3ad
svga: deriv insns not valid in dynamic flow control either
2010-02-02 17:45:32 +00:00
Keith Whitwell
70947e531e
svga: texture from lod zero inside dynamic branching
...
Texture derivatives are potentially undefined inside dynamic branches,
so hardwire lod zero in this case. Treating all if/endif and loop
constructs as dynamic branches.
2010-02-02 15:34:01 +00:00
Pauli Nieminen
7b92cb45b2
r200: Fix EXT_fogcoord rendering.
...
The fogcoord calue was not pushed to GPU because of implicit float to int conversion.
Fix is to use float pointer to buffer object so no conversion is done in assigment.
2010-02-02 06:09:36 +02:00
Brian Paul
43e4b58422
st/mesa: fix texture deallocation bug
...
This fixes a bug reported by Christoph Bumiller on mesa3d-dev.
When a texture is first created as RGBA, then re-defined with
glTexImage(internalFormat=GL_DEPTH_COMPONENT) we failed to deallocate
the original texture. When this texture was bound as a FBO surface,
the depth/Z surface format was RGBA instead of Z. Depending on the
driver this led to a failed assertion or FBO validation failure.
This patch does three things:
1. Remove ancient code that mysteriously tested if we were replacing
the smallest mipmap level and tested if the texture was not a cube map
texture. I can't see any reason for those tests.
2. Move the width=height=depth=0 test to after the code which frees
texture data. Calling glTexImage with width=height=depth=0 and data=NULL
is a way to free a single mipmap level.
3. Update the code comments.
There are no apparent conform, glean or piglit regressions from this change.
2010-02-01 18:55:54 -07:00
Brian Paul
e0d01c9d7f
mesa: change _mesa_find_free_register() to find multiple free regs
...
Before, _mesa_find_free_register() would scan the given shader to
find a free/unused register of the given type. But subsequent calls
would return the same register again. This caused a failure in the
_mesa_remove_output_reads() function which sometimes needs several
free temps.
Now use a new function which build a vector of 'used' flags and another
function which searches that vector for an unused register starting at
a position that's incremented for each call.
Fixes fd.o bug 26317. Note that a regression test for this has been
added to the glean/glsl1 test.
2010-02-01 17:31:24 -07:00
José Fonseca
b90b3667a1
mesa: Ensure object refcount is null when destroying the buffer.
...
Lets see if this is not too pedantic. Obj pointers are never exposed to
GL apps so it should be possible to get this right.
Furthermore apps with GL widgets and test suits create and destroy many
contexts and objects, so bad reference counting is not really an option.
2010-02-01 21:41:04 +00:00
José Fonseca
0123a2d042
mesa: Fix null buffer object reference counting.
...
Always use _mesa_reference_buffer_object, and never call
ctx->Driver.DeleteBuffer() directly to prevent dangling pointers to the
null buffer object.
This fixes crash/assertions in sharedtex_mt and Autodesk Mudbox.
2010-02-01 21:41:04 +00:00
José Fonseca
51a2cc5499
mesa: Always do proper ref counting of shared state.
2010-02-01 21:41:04 +00:00
Jakob Bornecrantz
f5145a6ec3
vmware/core: Remove old ioctl structs not used
...
Leftover that was never used in this driver
2010-01-29 17:14:53 +01:00
José Fonseca
ddedfe12d4
svga: Actually call fence_reference in texture downloads.
2010-01-29 16:23:46 +00:00
Brian Paul
cb5447f79c
glsl: fix preprocessor bug involving //-style comments in macro definitions
...
See comments for details.
2010-01-29 08:26:23 -07:00
Brian Paul
9fd3c74724
tnl: check that state is validated before drawing
2010-01-29 08:24:36 -07:00
Brian Paul
4d1234e222
st/mesa: check that state is validated before drawing
2010-01-29 08:24:36 -07:00
Brian Paul
3cba779e16
vbo: fix missing state validation bugs
...
Commit 2708ddfb06
caused a few regressions.
We need to check/validate state after calling bind_arrays() because
it might set the _NEW_ARRAYS flag if the varying VP inputs change.
The symptom of this problem was some attribute arrays being ignored
(or interpreted as constant-valued) in glDrawRangeElements or
glMultiDrawElements.
A follow-on patch will add some additional asserts to try to catch
this kind of thing in the future.
2010-01-29 08:24:36 -07:00
Brian Paul
23eda89ec8
mesa: do state validation in _mesa_valid_to_render()
...
...rather than checking/validating before all the calls to
_mesa_valid_to_render() and valid_to_render().
The next patch will actually fix some bugs...
2010-01-29 08:24:36 -07:00
José Fonseca
6e68898b05
softpipe: Flush draw module when fragment pipeline state changes.
2010-01-28 20:22:44 +00:00
José Fonseca
1befcd5a2a
softpipe: Flush draw module before switching framebuffer.
...
Otherwise geometry might end up in the wrong rendertarget.
2010-01-28 20:22:44 +00:00
José Fonseca
12ba355978
llvmpipe: Use assert instead of abort. Only verify functions on debug builds.
2010-01-28 20:22:43 +00:00
José Fonseca
a0907a645f
llvmpipe: Fix memory leak.
2010-01-28 20:22:43 +00:00
José Fonseca
1acf7a09e7
llvmpipe: Use the generic conversion routine for depths.
...
This allows for z32f depth format to work correctly.
2010-01-28 20:22:43 +00:00
José Fonseca
14dc02a1b2
llvmpipe: Be more conservative with the supported formats.
...
We'll likely support much more formats, but doing this allows to run
more testsuites without immediately hit assertion failures.
2010-01-28 20:22:43 +00:00
José Fonseca
88cf87bd56
llvmpipe: Unmapping vertex/index buffers does NOT flush draw module anymore.
...
Not since 6094e79f4e
.
Drivers now need to flush draw module explicitely (which explains why
all those previous commits adding draw_flushes calls were necessary).
This is a good thing, but it's tricky to get this right in face of user buffers
(it's not even clear who has the responsibility to flush when a user buffer
is seen -- statetracker or pipe driver), so just force flush (temporarily)
since it's not a bottleneck now.
2010-01-28 20:22:43 +00:00
José Fonseca
31b3420688
llvmpipe: Treat state changes systematically.
...
That is:
- check for no op
- update/flush draw module
- update bound state and mark it as dirty
In particular flushing the draw module is important since it may contain
unflushed primitives which would otherwise be draw with wrong state.
2010-01-28 20:22:43 +00:00
José Fonseca
4e95983fa8
llvmpipe: Flush draw module before switching framebuffer.
...
Otherwise geometry will end up in the wrong rendertarget.
2010-01-28 20:22:43 +00:00
José Fonseca
4e506eac8f
llvmpipe: add LP_DEBUG env var
...
Cherry-picked from dec35d04ae
.
2010-01-28 20:22:43 +00:00
Brian Paul
46167149ce
llvmpipe: fix broken TGSI_OPCODE_FRC codegen
2010-01-28 20:22:42 +00:00
Brian Paul
96ec4eb755
llvmpipe: fix broken lp_build_abs()
2010-01-28 20:22:42 +00:00
José Fonseca
e20547042c
llvmpipe: Fix yet another copynpaste typo in lp_build_log2_approx.
...
Now fslight looks perfect.
2010-01-28 20:22:42 +00:00
José Fonseca
0451d0fd01
llvmpipe: Fix lp_build_polynomial comment.
2010-01-28 20:22:42 +00:00
José Fonseca
aa8b23e077
llvmpipe: Fix typo in lp_build_log constant.
2010-01-28 20:22:42 +00:00
José Fonseca
4eb48a3af7
llvmpipe: Fix bad SI -> FP conversion into lp_build_log2_approx.
...
It should be a bitcast as the integer value is actually an encoded FP
already.
2010-01-28 20:22:42 +00:00
Jakob Bornecrantz
8db8adfd01
st/xorg: Update to new libkms interface but be backwards compatible
2010-01-28 18:02:10 +01:00
Keith Whitwell
8e240d7e0e
svga: remove sleep in DEBUG_FLUSH path
2010-01-28 17:13:50 +00:00
José Fonseca
40298bf272
python/retrace: Dump all vertices for verbosity level 3.
2010-01-28 17:13:49 +00:00
Brian Paul
a0518e66b2
docs: Fixed Windows build for 7.7.1
2010-01-27 17:08:03 -07:00
Brian Paul
82c76cd16f
windows: assorted build fixes
...
These changes were originally submitted by Karl Schultz for Mesa 7.7-rc2
but weren't applied.
2010-01-27 17:04:49 -07:00
Rodolfo Ribeiro Gomes
50e890bc51
glx: fix possible memory leaks in dri2CreateScreen()
...
Original patch fixed up by Brian Paul.
2010-01-27 17:04:49 -07:00
Alex Deucher
bba9557019
r600: fix warning
2010-01-27 12:20:04 -05:00
Alex Deucher
2041d3e4b7
r600: rv670 support 8 tex instructions just like other r6xx
...
also clarify some other const values.
2010-01-27 12:19:54 -05:00
Andre Maasikas
77b7b3a1ab
r600: increase max texture units to 16
2010-01-27 11:38:29 -05:00
Andre Maasikas
0dab80fbfb
r600: fix XPD with writemask
...
same variable used for 2 different temp registers
fixes e.g. glsl/bump
2010-01-27 11:38:16 -05:00
José Fonseca
e3257912e0
mesa: Warn when indices are out of bounds, but do not skip the draw in debug builds.
...
The driver (or preferably the hardware) should handle out of bounds
indices.
If there are problems then it's better to detect those in the debug
builds.
2010-01-27 16:25:31 +00:00
José Fonseca
15fe491822
svga: Prevent buffer overflow in buffer ranges.
...
Do this by extending the nearest range to cover the new range.
This fixes an access fault in Call of Duty which was doing many disjoint
glBufferSubData calls.
2010-01-27 15:41:25 +00:00
José Fonseca
ac597f5acc
svga: Fix PIPE_LOGICOP_INVERT.
...
Actually the current XOR implementation is an INVERT.
This fixes rectangle selection in Maya.
2010-01-27 14:45:56 +00:00
Keith Whitwell
5cb255f0d7
svga: better path for generating white pixels for xor logicop workaround
2010-01-27 14:26:48 +00:00
Dave Airlie
2f28ca0a27
radeon/r200/r300: don't clean non-emitted state.
...
So if we don't actually emit an atom to the hw because we don't
need it in the current state (e.g. lighting related atoms when
lighting is off) then don't mark it as clean, because when
lighting gets switched on we won't emit it at all.
This fixes funky gears colors.
Signed-off-by: Dave Airlie <airlied@redhat.com >
2010-01-27 12:32:46 +10:00
Dave Airlie
0580e488da
radeon: remove unused file
2010-01-27 12:32:44 +10:00
José Fonseca
5435f790fd
python: Add missing library on debug builds.
2010-01-26 20:37:35 +00:00
Erik Wien
68ca19afd7
mesa: Don't bind DRAW/READ_FRAMEBUFFER separately without FBO blit support
...
If GL_EXT_framebuffer_blit was not supported _mesa_DeleteFramebuffersEXT
would raise an error when deleting the currently bound framebuffer. This
because it tried to bind the default DRAW- and READ_FRAMEBUFFER separately.
This patch binds the default FRAMEBUFFER instead in that case.
Encountered in the fbo/fbo-copyteximage piglit test on R600.
Patch cleaned up a bit by Brian Paul.
2010-01-26 13:19:32 -07:00
Brian Paul
cbecb8fc8e
vbo: if 'end' is out of bounds, clamp it
...
If we determine that the 'end' parameter to glDrawElements() is out of
bounds, clamp it to the max legal index value.
2010-01-26 12:49:48 -07:00
Brian Paul
645e297a00
vbo: clamp DrawElements start/end to max possible values
...
Some apps are sloppy with their start/end values. Clamp them to
max possible values to prevent problems later.
2010-01-26 12:47:54 -07:00
Brian Paul
af1e9403e7
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.
2010-01-26 10:53:40 -07:00
Brian Paul
1d8b308cbf
docs: document Intel, R300 env vars
2010-01-26 09:12:32 -07:00
Jakob Bornecrantz
6749310d3f
st/xorg: Fix crash on resize with libkms
2010-01-25 20:12:59 +01:00
Igor Oliveira
0d051af612
vega: fix incorrect samplers, textures indexes in blend_bind_samplers()
...
Fixes fd.o bug 25863.
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-01-25 09:53:53 -07:00
Jakob Bornecrantz
6877c5de3c
vmware/xorg: Do buffer round-robin logic differently
2010-01-25 12:27:47 +01:00
Jakob Bornecrantz
0b482c4fbe
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
2010-01-25 11:24:56 +01:00
Jakob Bornecrantz
a3b783ea29
vmware/xorg: Export pci_probe function for ugly chain-loading
2010-01-25 11:24:55 +01:00
Jakob Bornecrantz
36fd55f9f0
st/xorg: Export helper function for detecting modesetting
2010-01-25 11:24:55 +01:00
Jakob Bornecrantz
16cf7e14a6
st/xorg: Fix warning
2010-01-25 11:24:55 +01:00
Brian Paul
47d30b0c2c
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.
2010-01-24 18:18:17 -07:00
Brian Paul
e88d6fe299
mesa: move _mesa_debug() call earlier in _mesa_Scissor
...
Part of a patch from Xavier Chantry <chantry.xavier@gmail.com >
2010-01-24 17:54:47 -07:00
Xavier Chantry
fdfa4c8529
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 >
2010-01-24 16:45:49 -07:00
Vinson Lee
e85cb98a16
r200: Silence fprintf format warning.
2010-01-24 00:17:00 -08:00
Vinson Lee
e02dc13952
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.
2010-01-23 23:18:33 -08:00
Vinson Lee
f429b80fff
x86: Do not use .hidden pseudo-op on Mac OS X.
...
The .hidden directive is an unknown pseudo-op on Mac OS X.
2010-01-23 23:12:34 -08:00
Vinson Lee
bc75ec0f38
glapi: Do not use .type pseudo-op on Mac OS X.
...
The .type directive is an unknown pseudo-op on Mac OS X.
2010-01-23 22:59:31 -08:00
Vinson Lee
6b55aacccb
scons: Do not use ld options start-group and end-group on Darwin.
...
Mac OS X ld does not support these options.
2010-01-23 21:43:26 -08:00
Vinson Lee
d57ba16ae3
scons: Define _DARWIN_C_SOURCE on Darwin builds.
2010-01-23 21:05:58 -08:00
Vinson Lee
7f2f42dd80
progs/demos: Remove unnecessary header from shadowtex.c.
2010-01-23 20:56:49 -08:00
Vinson Lee
b62b524fee
r300: Remove unnecessary headers.
2010-01-23 20:43:27 -08:00
Vinson Lee
fb6bff3712
intel: Remove unnecessary headers.
2010-01-23 14:33:29 -08:00
Vinson Lee
146a77af3f
radeon: Remove unused variable.
2010-01-23 02:14:56 -08:00
Vinson Lee
4bad0aef40
tdfx: Remove unnecessary headers.
2010-01-23 01:54:53 -08:00
Vinson Lee
283d9565bf
sis: Remove unnecessary headers.
2010-01-23 01:40:44 -08:00
Vinson Lee
09a142e5db
savage: Remove unnecessary headers.
2010-01-23 00:38:14 -08:00
Vinson Lee
ca54a5b920
mga: Remove unnecessary headers.
2010-01-23 00:19:29 -08:00
Vinson Lee
634ec5c2ab
i965: Remove unnecessary headers.
2010-01-22 23:53:39 -08:00
Vinson Lee
329c1b5910
i915: Remove unnecessary headers.
2010-01-22 23:22:16 -08:00
Brian Paul
5e78903952
gallium/util: fix incorrect shift in a4r4g4b4_put_tile_rgba()
...
Fixes fd.o bug 23313.
2010-01-22 17:17:05 -07:00
Brian Paul
099e8ec54d
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).
2010-01-22 15:41:11 -07:00
Brian Paul
8d1a01d370
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).
2010-01-22 15:36:38 -07:00
Brian Paul
efde2df114
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.
2010-01-22 13:07:07 -07:00
Brian Paul
64871747bb
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.
2010-01-22 11:49:51 -07:00
Brian Paul
5ab0d49a07
gallium/draw: added comments, whitespace fixes
2010-01-22 11:39:19 -07:00
Ruediger Oertel
96280c2a41
Fix PowerPC related typo in spantmp2.h
...
Signed-off-by: Matthias Hopf <mhopf@suse.de >
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-01-22 08:07:41 -07:00
José Fonseca
383f460cf7
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.
2010-01-22 09:41:52 +01:00
Vinson Lee
3f6d732bfb
st/mesa: Remove unnecessary header from st_cb_viewport.c.
2010-01-21 23:41:57 -08:00
Vinson Lee
8bc3c06d86
progs/trivial: Remove unnecessary header from tri-fbo-tex-mip.c.
2010-01-21 23:24:40 -08:00
Vinson Lee
a1c5d8f61d
i915g: Remove unnecessary header.
2010-01-21 23:09:06 -08:00
Vinson Lee
cea9250ff0
pipebuffer: Remove unnecessary header.
2010-01-21 23:07:29 -08:00
Vinson Lee
dc544ad9c6
draw: Remove unnecessary headers.
2010-01-21 22:57:12 -08:00
Vinson Lee
e8b5203fbb
svga: Remove unused variable.
2010-01-21 17:24:07 -08:00
José Fonseca
a626565178
vmware/core: Flush preemptively the FIFO commands to keep the GMR working set within reasonable bounds.
2010-01-21 15:51:37 -08:00
José Fonseca
beb8e8f2f2
vmware/core: Put GMR pool size in a define.
2010-01-21 15:47:52 -08:00
José Fonseca
e45579e50b
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.
2010-01-21 15:27:26 -08:00
José Fonseca
31e49dc54e
svga: Remove duplicate code.
2010-01-21 15:18:40 -08:00
José Fonseca
50edefec2d
svga: Remove unused code.
2010-01-21 15:18:40 -08:00
José Fonseca
9782d7cdf3
svga: Don't swap buffers to system memory -- winsys' responsibility.
2010-01-21 15:18:40 -08:00
José Fonseca
c4ceba1141
pipebuffer: Release the lock during map wait. Cleanups.
2010-01-21 15:18:40 -08:00
José Fonseca
3498616b03
pipebuffer: Swap buffers out to system memory when running out of memory.
2010-01-21 15:18:40 -08:00
José Fonseca
0bc8851884
svga: Avoid synchronization issues when doing SW TNL.
2010-01-21 15:18:40 -08:00
José Fonseca
8410f7cde3
mesa: Use pipe_buffer_write_nooverlap where appropriate.
2010-01-21 15:18:40 -08:00
José Fonseca
37246f854b
util: Set DISCARD & UNSYNCHRONIZED when uploading vertices sequentially.
2010-01-21 15:18:40 -08:00
José Fonseca
1797494946
util: Use pipe_buffer_write_nooverlap in blits / mipmap generation.
2010-01-21 15:18:40 -08:00
José Fonseca
a8477fb00c
gallium: New inline to write buffers which avoids synchronization.
2010-01-21 15:18:40 -08:00
José Fonseca
707b28136f
gallium: Set PIPE_BUFFER_USAGE_DISCARD flag in pipe_buffer_write.
2010-01-21 15:18:40 -08:00
José Fonseca
13c2475339
gallium: Remove temporary hack for the absence of a discard flag.
...
PIPE_BUFFER_USAGE_DISCARD flag now exists.
2010-01-21 15:18:40 -08:00
José Fonseca
0ae076bf40
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.
2010-01-21 15:18:40 -08:00
Vinson Lee
efc08bddb7
st/xorg: Remove unnecessary headers.
2010-01-21 15:05:21 -08:00
Roland Scheidegger
2cf8164065
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.
2010-01-21 17:33:51 -05:00
Vinson Lee
4222bf3d3c
llvmpipe: Remove unnecessary headers.
2010-01-21 14:31:15 -08:00
Vinson Lee
c50fe2c55c
svga: Remove unnecessary headers.
2010-01-21 12:12:11 -08:00
Vinson Lee
e19b3c01f4
mach64: Remove unnecessary headers.
2010-01-20 22:52:49 -08:00
Vinson Lee
7c66211b7d
i810: Remove unnecessary headers.
2010-01-20 22:02:51 -08:00
Vinson Lee
0bc2cbf82a
ffb: Remove unnecessary headers.
2010-01-20 16:27:44 -08:00
Brian Paul
a416123f5b
xlib/softpipe: fix buffer memory leak
...
Fixes leak caused by window resize.
2010-01-20 10:34:45 -07:00
Brian Paul
65d2a26637
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.
2010-01-20 08:09:53 -07:00
Brian Paul
4e34c5d0b5
docs: updated Mesa mailing list info
2010-01-20 08:09:53 -07:00
Jakob Bornecrantz
9f728ed1c9
st/xorg: Fic bug and close drm_api at proper place
2010-01-20 14:55:07 +00:00
Vinson Lee
e3cb614f93
softpipe: Remove unnecessary headers.
2010-01-20 00:08:54 -08:00
Vinson Lee
ac2a665fd7
i915g: Remove unnecessary headers.
2010-01-19 22:47:03 -08:00
Jakob Bornecrantz
bea9ed4dc6
svga: Do a more propper creation of textures from handles
2010-01-19 23:30:31 +01:00
Jakob Bornecrantz
c78fe6e050
st/xorg: Don't leak BusID buffer
2010-01-19 23:30:30 +01:00
Jakob Bornecrantz
65354a7e3d
st/xorg: Pass kernel driver name to drmOpen
2010-01-19 17:12:12 +01:00
Jakob Bornecrantz
a5fb5d6a54
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.
2010-01-19 17:10:04 +01:00
Ben Skeggs
116a02be22
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 >
2010-01-19 17:06:22 +01:00
Luca Barbieri
e88294328c
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 >
2010-01-19 08:59:37 -07:00
José Fonseca
7a39a5c1cb
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.
2010-01-19 06:14:12 -08:00
José Fonseca
5e870f4fe9
wgl: Don't export pure-stencil pixel formats.
...
They cause DCT's conform to always fail.
2010-01-19 06:14:12 -08:00
José Fonseca
e5da7b8548
softpipe: Fix vertex buffer memory leak.
2010-01-19 06:14:12 -08:00
Vinson Lee
faa99dd31d
unichrome: Remove unnecessary headers.
2010-01-19 00:45:16 -08:00
Vinson Lee
45a27eacd6
mesa: Remove unnecessary header from attrib.c.
2010-01-18 22:50:08 -08:00
Vinson Lee
2613fa815a
mesa: Remove unnecessary header from blend.c.
2010-01-18 22:45:23 -08:00
Vinson Lee
c4ad036ce1
mesa: Remove unnecessary headers from buffers.c.
2010-01-18 22:17:03 -08:00
Vinson Lee
7366d8e7d2
mesa: Remove unnecessary header from convolve.c.
2010-01-18 21:56:58 -08:00
Vinson Lee
08063ba449
mesa: Fix typo of 'unknown' in debug.c.
2010-01-18 21:41:31 -08:00
Vinson Lee
b36b85f9d0
mesa: Remove unnecessary headers from debug.c.
2010-01-18 21:37:18 -08:00
Vinson Lee
6deb8c9831
mesa: Remove unnecessary header from depthstencil.c.
2010-01-18 21:34:25 -08:00
Vinson Lee
2660511ea9
mesa: Remove unnecessary headers from dlist.c.
2010-01-18 21:31:02 -08:00
Vinson Lee
7395ab042a
mesa: Remove unnecessary header from drawpix.c.
2010-01-18 21:22:47 -08:00
Vinson Lee
0b3109aa05
mesa: Remove unnecessary header from enable.c.
2010-01-18 21:17:45 -08:00
Vinson Lee
536e3c9168
mesa: Remove unnecessary headers from fbobject.c.
2010-01-18 21:14:04 -08:00
Vinson Lee
b6dce54214
mesa: Remove unnecessary header from formats.c.
2010-01-18 21:07:53 -08:00
Vinson Lee
2cbc3e0a20
mesa: Remove unnecessary header from image.c.
2010-01-18 21:02:19 -08:00
José Fonseca
65fa11959f
softpipe: Skip depth testing for PIPE_S8_UNORM.
2010-01-18 20:34:19 -08:00
José Fonseca
8fb92e96e9
mesa: Handle PIPE_FORMAT_B8G8R8X8_UNORM.
2010-01-18 20:34:19 -08:00
José Fonseca
bcadde2068
pipebuffer: Ensure buffer size/alignment is not zero.
2010-01-18 20:34:19 -08:00
José Fonseca
dc298559c6
svga: Ensure buffer size/alignment is not zero.
2010-01-18 20:34:19 -08:00
Vinson Lee
ebd1075598
mesa: Remove unnecessary headers from lines.c.
2010-01-18 19:32:51 -08:00
Vinson Lee
d0125e3c29
mesa: Remove unnecessary header from mipmap.c.
2010-01-18 19:23:47 -08:00
Vinson Lee
ed5a116eb4
mesa: Remove unnecessary header from pixel.c.
2010-01-18 19:20:56 -08:00
Vinson Lee
2f83948370
mesa: Remove unnecessary headers from pixelstore.c.
2010-01-18 19:14:23 -08:00
Vinson Lee
419ae5a483
mesa: Remove unnecessary header from points.c.
2010-01-18 19:10:05 -08:00
Vinson Lee
80ea879cfa
mesa: Remove unnecessary header from polygon.c.
2010-01-18 19:03:54 -08:00
Vinson Lee
6603550353
mesa: Remove unnecessary header from state.c.
2010-01-18 18:54:54 -08:00
Vinson Lee
ec29ba12a6
mesa: Remove unnecessary headers from texcompress.c.
2010-01-18 18:52:24 -08:00
Vinson Lee
f8db32acbd
st/dri: Add comment for intentional fallthrough in case statement.
2010-01-18 18:14:03 -08:00
Brian Paul
28576c9ac5
st/mesa: change instruction count assertion to > 0
...
Shaders should at least have an END instruction.
2010-01-18 11:26:57 -07:00
Marcin Slusarz
e978b24c87
st/dri: fix optionCache memory leaks
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-01-18 10:48:06 -07:00
Marcin Slusarz
23ae318200
glxgears: unbind current context before "destroying" it
...
glXDestroyContext does not destroy the context if it's still
connected to some window. Unbind context from window to test it.
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-01-18 10:44:53 -07:00
Jakob Bornecrantz
ccc888c39e
st/xorg: If dri2 version is 2 support version 1 as well
...
Thanks to X server commit 2e2c5b216cc1c7a9bc26bd2c68226aaed5fc52ca
it is possible to be ABI compatible in version 2 with version 1 of
the DRI2 interface.
2010-01-15 01:38:04 +00:00
Jakob Bornecrantz
3e1241d4f8
st/xorg: Set enforce version to 1 if not defined
2010-01-15 01:38:04 +00:00
Thomas Hellstrom
ae97520e37
ws/vmware: Check DRM version also when bootstrapping in dri2 mode.
...
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com >
2010-01-18 15:56:57 +01:00
Thomas Hellstrom
5f2d60a715
st/dri: Don't request a fake front if the server adds one automatically.
...
We use the presence of the getBuffersWithFormat extension function to
detect whether the server automatically adds a front.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com >
2010-01-18 13:39:25 +01:00
Vinson Lee
d773f28ff2
mesa: Remove unnecessary headers from texformat.c.
2010-01-18 00:47:56 -08:00
Vinson Lee
39824945fa
mesa: Remove unnecessary headers from texgetimage.c.
2010-01-18 00:14:51 -08:00
Vinson Lee
6938dccf1a
mesa: Remove unnecessary header from teximage.c.
2010-01-17 22:31:53 -08:00
Vinson Lee
c847e7d07b
mesa: Remove unnecessary header from texobj.c.
2010-01-17 20:50:15 -08:00
Vinson Lee
59eed7a201
mesa: Remove unnecessary header from texparam.c.
2010-01-17 16:21:11 -08:00
Vinson Lee
3e876431d0
mesa: Remove unnecessary headers from texstate.c.
2010-01-17 16:08:59 -08:00
Vinson Lee
6b6ac9aca0
mesa: Use preprocessor to comment out code.
2010-01-17 15:48:39 -08:00
Vinson Lee
ae943f8e20
mesa: Remove unnecessary headers from vtxfmt.c.
2010-01-17 01:49:16 -08:00
Vinson Lee
97e44cde17
mesa: Remove unnecessary headers from arbprogparse.c.
2010-01-16 23:41:05 -08:00
Vinson Lee
97fc7ae69f
mesa: Remove unnecessary header from nvvertparse.c.
2010-01-16 16:15:37 -08:00
Vinson Lee
5a4d5b694c
glsl: Remove unnecessary header from prog_execute.c.
2010-01-16 16:06:58 -08:00
Vinson Lee
148498d8cc
glsl: Remove unnecessary header from prog_statevars.c.
2010-01-16 15:51:52 -08:00
Vinson Lee
0d62242082
glsl: Remove unnecessary headers from shader_api.c.
2010-01-16 15:35:56 -08:00
Vinson Lee
1f7762f62b
glsl: Remove unnecessary header from slang_emit.c.
2010-01-16 15:00:29 -08:00
Vinson Lee
89950fbe24
st/mesa: Remove unnecessary header from st_cb_drawpixels.c.
2010-01-16 13:29:15 -08:00
Vinson Lee
59db91e2ee
glsl: Remove unnecessary header from slang_builtin.c.
2010-01-16 02:20:51 -08:00
Vinson Lee
535084996b
glsl: Remove unnecessary headers from slang_compile.c.
2010-01-16 02:16:24 -08:00
Vinson Lee
1d3bdc2090
glsl: Remove unnecessary header from slang_link.c.
2010-01-16 02:02:49 -08:00
Vinson Lee
10bd931949
glsl: Remove unnecessary header from slang_log.c.
2010-01-16 01:50:08 -08:00
Vinson Lee
533b6e8deb
st/mesa: Remove unnecessary header from st_atom_framebuffer.c.
2010-01-16 01:39:04 -08:00
Vinson Lee
3eb85bf7d9
st/mesa: Remove unnecessary header from st_atom_pixeltransfer.c.
2010-01-16 00:52:34 -08:00
Vinson Lee
bc639f291b
st/mesa: Remove unnecessary header from st_atom_sampler.c.
2010-01-16 00:45:36 -08:00
Vinson Lee
227fc5a308
st/mesa: Remove unnecessary header from st_atom_shader.c.
2010-01-16 00:36:31 -08:00
Vinson Lee
cc2f2268f5
st/mesa: Remove unnecessary headers from st_cb_accum.c.
2010-01-16 00:30:25 -08:00
Vinson Lee
e1d4781cd4
st/mesa: Remove unnecessary headers from st_cb_bitmap.c.
2010-01-16 00:08:54 -08:00
Vinson Lee
cc770c8409
st/mesa: Remove unnecessary headers from st_cb_blit.c.
2010-01-15 23:17:00 -08:00
Vinson Lee
6906bf08cc
st/mesa: Remove unnecessary headers from st_cb_clear.c.
2010-01-15 23:02:07 -08:00
Vinson Lee
668d871d95
st/mesa: Remove unnecessary headers from st_cb_drawpixels.c.
2010-01-15 22:55:47 -08:00
Alex Deucher
adcde22952
r600: fill in some missing XRGB tex formats
2010-01-15 23:04:19 -05:00
Alex Deucher
81eed59a2c
r600: set tiling correctly for texturing from depth buffer
2010-01-15 23:04:09 -05:00
Alex Deucher
114ab07aee
r600: fix typo in SQ setup
2010-01-15 23:04:00 -05:00
Vinson Lee
56cd5806e8
st/mesa: Remove unnecessary header from st_cb_fbo.c.
2010-01-15 18:24:12 -08:00
Vinson Lee
a9f6255431
st/mesa: Remove unnecessary headers from st_cb_feedback.c.
2010-01-15 18:20:56 -08:00
Vinson Lee
2d2d890048
st/mesa: Remove unnecessary header from st_cb_program.c.
2010-01-15 16:28:56 -08:00
Vinson Lee
fbda223893
st/mesa: Remove unnecessary header from st_cb_queryobj.c.
2010-01-15 16:27:28 -08:00
Brian Paul
f595e72337
tgsi: fix detection of front-facing attribute
...
This code was not updated when we added TGSI_SEMANTIC_FACE a while ago.
2010-01-15 14:57:58 -07:00
Brian Paul
2c5aa02e20
swrast: add missing call to _swrast_depth_bounds_test()
...
We were calling this from the CI span function, but not the RGBA
span function.
I don't know of a test program for the GL_EXT_depth_bounds_test
extension...
2010-01-15 14:25:33 -07:00
Brian Paul
7385681797
swrast: fix broken _swrast_depth_clamp_span()
...
The integer Z clamping range depends on the number of bits
in the Z buffer because that's the scale factor used when we
transform NDC coords by the viewport/depth range.
Fixes fd.o bug #25972 but only for Z buffers up to a depth
of 30 bits. Beyond that we get into messy integer overflow
issues and things fall apart.
2010-01-15 14:19:25 -07:00
Vinson Lee
79a5a28390
st/mesa: Remove unnecessary header from st_cb_rasterpos.c.
2010-01-14 23:05:42 -08:00
Vinson Lee
9c2ef74a76
st/mesa: Remove unnecessary headers from st_cb_readpixels.c.
2010-01-14 23:03:37 -08:00
Vinson Lee
cde041cd13
st/mesa: Remove unnecessary header from st_cb_strings.c.
2010-01-14 22:30:00 -08:00
Vinson Lee
644572a372
st/mesa: Remove unnecessary headers from st_cb_texture.c.
2010-01-14 22:27:13 -08:00
Vinson Lee
4f8baf7dce
st/mesa: Remove unnecessary headers from st_cb_viewport.c.
2010-01-14 19:00:27 -08:00
Vinson Lee
53c6c38412
st/mesa: Remove unnecessary headers from st_context.c.
2010-01-14 18:53:51 -08:00
Vinson Lee
604e9ec2c4
st/mesa: Remove unnecessary header from st_draw_feedback.c.
2010-01-14 18:46:51 -08:00
Vinson Lee
9e7778d7aa
st/mesa: Remove unnecessary header from st_extensions.c.
2010-01-14 18:34:59 -08:00
Vinson Lee
8a8a27b01a
st/mesa: Remove unnecessary header from st_format.c.
2010-01-14 18:19:39 -08:00
Vinson Lee
eaedc1bb3e
st/mesa: Remove unnecessary headers from st_framebuffer.c.
2010-01-14 18:10:06 -08:00
Vinson Lee
6890b06982
st/mesa: Remove unnecessary headers from st_gen_mipmap.c.
2010-01-14 17:54:47 -08:00
Vinson Lee
252812bf15
st/mesa: Remove unnecessary header from st_program.c.
2010-01-13 23:28:00 -08:00
Vinson Lee
c109ca9c49
st/mesa: Remove unnecessary header from st_texture.c.
2010-01-13 23:16:05 -08:00
Vinson Lee
6b39e8aeb0
swrast: Remove unnecessary header from s_accum.c.
2010-01-13 23:01:03 -08:00
Vinson Lee
78411881d3
swrast: Remove unnecessary header from s_atifragshader.c.
2010-01-13 22:58:07 -08:00
Vinson Lee
0a70868131
swrast: Remove unnecessary header from s_bitmap.c.
2010-01-13 22:45:54 -08:00
Vinson Lee
886cffb44e
swrast: Remove unnecessary headers from s_copypix.c.
2010-01-13 22:43:16 -08:00
Vinson Lee
cf061c24e0
swrast: Remove unnecessary header from s_depth.c.
2010-01-13 22:36:01 -08:00
Vinson Lee
d1631f734a
swrast: Remove unnecessary header from s_drawpix.c.
2010-01-13 22:30:04 -08:00
Vinson Lee
f649870c9b
swrast: Remove unnecessary header from s_feedback.c.
2010-01-13 22:20:44 -08:00
Thomas Hellstrom
a9086f2d17
st/dri: Make sure we always request a fake front.
...
This should be the correct, but sub-optimal way to handle things on
pre-1.7 servers. For servers that automatically adds a fake front
we should never request the fake front and handle the reply differently.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com >
2010-01-13 17:45:21 +01:00
José Fonseca
1b333453e4
svga: Fix compile_vs error code.
...
It could erroneously return PIPE_OK in some circumstances.
Make compile_fs code identical.
2010-01-13 13:40:09 +00:00
Vinson Lee
831764fa75
swrast: Remove unnecessary header from s_fragprog.c.
2010-01-12 23:54:15 -08:00
Vinson Lee
d6588a9372
swrast: Remove unnecessary header in s_lines.c.
2010-01-12 21:59:58 -08:00
Vinson Lee
7debc532d5
swrast: Remove unnecessary header from s_points.c.
2010-01-12 21:51:19 -08:00
Vinson Lee
11034bfa97
swrast: Remove unnecessary header from s_readpix.c.
2010-01-12 21:41:09 -08:00
Vinson Lee
a01b9eac04
swrast: Remove unnecessary header from s_texcombine.c.
2010-01-12 20:36:33 -08:00
Vinson Lee
c239f38709
tnl: Remove unnecessary header from t_context.c.
2010-01-12 20:14:36 -08:00
Vinson Lee
2c7cf3f9c9
tnl: Remove unnecessary headers from t_draw.c.
2010-01-12 20:02:44 -08:00
Vinson Lee
dffcbee8e7
tnl: Remove unnecessary header from t_pipeline.c.
2010-01-12 19:55:24 -08:00
Vinson Lee
a24d852630
tnl: Remove unnecessary header from t_rasterpos.c.
2010-01-12 19:49:19 -08:00
Vinson Lee
264f4101cd
tnl: Remove unnecessary header from t_vb_program.c.
2010-01-12 19:45:25 -08:00
Vinson Lee
c631501003
vbo: Remove unnecessary headers from vbo_exec.c.
2010-01-12 17:07:24 -08:00
Vinson Lee
94d238e757
vbo: Remove unnecessary header from vbo_exec_array.c.
2010-01-12 16:55:36 -08:00
Vinson Lee
37d326503d
vbo: Remove unnecessary header from vbo_exec_draw.c.
2010-01-12 16:37:30 -08:00
Vinson Lee
aee9a6f4e1
vbo: Remove unnecessary headers from vbo_save.c.
2010-01-12 00:50:05 -08:00
Vinson Lee
d2271d8a39
vbo: Remove unnecessary header from vbo_save_loopback.c.
2010-01-11 23:53:13 -08:00
Vinson Lee
083dae14bd
vbo: Remove unnecessary header from vbo_split_copy.c.
2010-01-11 22:46:30 -08:00
Vinson Lee
0d65a68f51
x86: Remove unnecessary header from x86_xform.c.
2010-01-11 21:04:16 -08:00
Vinson Lee
8e9ceb8309
progs/xdemos: Remove unnecessary header from corender.c.
2010-01-11 20:24:57 -08:00
Vinson Lee
477d51537f
progs/trivial: Remove unnecessary headers from tri-fbo-tex.c.
2010-01-11 20:21:50 -08:00
Vinson Lee
7241f5140f
progs/trivial: Remove unnecessary header from tri-fbo-tex-mip.c.
2010-01-11 20:15:59 -08:00
Vinson Lee
ae8ed89f24
progs/tests: Remove duplicate included header in vparray.c.
2010-01-11 19:58:08 -08:00
Vinson Lee
6ed607cce6
progs/tests: Add newline to end of printf in vparray.c.
2010-01-11 19:56:04 -08:00
Vinson Lee
7bfa54c6a4
progs/redbook: Remove unnecessary header from aapoly.c.
2010-01-11 19:52:22 -08:00
Vinson Lee
2178abfba3
progs/glsl: Remove duplicate included header from shtest.c.
2010-01-11 19:42:55 -08:00
Vinson Lee
78ddce9fda
progs/demos: Remove unnecessary header from morph3d.c.
2010-01-11 19:29:26 -08:00
Brian Paul
3fce8ad2de
Revert "util: Build u_bitmask.o when using make."
...
This reverts commit 01eff0e6d2
.
u_bitmask.c was already in the C_SOURCES list.
2010-01-11 20:19:30 -07:00
Vinson Lee
f07e87ffba
progs/tests: Silence fprintf format warning.
2010-01-11 19:16:36 -08:00
Vinson Lee
b4bc208529
progs/demos: Remove unnecessary header from isosurf.c.
2010-01-11 19:03:18 -08:00
Zack Rusin
d880b64423
st/xorg: move exaMoveInPixmap before trying to fetch it
...
as Michel suggested, this is a cleaner way of fixing crashes caused
by exaGetPixmapDriverPrivate returning null since the data hasn't
been moved yet.
2010-01-11 18:27:59 -05:00
Zack Rusin
3447d545d9
st/xorg: fix a rare video crash
...
sometimes dst isn't present if a window is in a middle of a resize, stop
crashing in those cases and just ignore a frame.
2010-01-11 18:03:49 -05:00
Jakob Bornecrantz
61f7252448
Revert "pipebuffer: Multi-threading fixes for fencing."
...
This reverts commit 5b64d94390
.
2010-01-07 05:14:20 +01:00
Thomas Hellstrom
cb51f02678
Revert "st/dri: no need to request fake front buffer, only handle it being returned"
...
This reverts commit 1336989ec6
.
The commit breaks frontbuffer rendering and the possibility to do
on-demand frontbuffer requests on all Xservers prior to 1.7.
The commit should be conditioned on a dri2 version check.
I've submitted a patch to Xserver to bump dri2 minor, and it's acked by Ian.
To be able to check the version from within the state tracker, we will
probably need another dri2 extension function that returns the server
version. The protocol has support for it.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com >
2010-01-11 21:36:51 +01:00
Thomas Hellstrom
01eff0e6d2
util: Build u_bitmask.o when using make.
...
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com >
2010-01-11 21:36:51 +01:00
Vinson Lee
6d6c9c6688
progs/demos: Remove unnecessary header from fbotexture.c.
2010-01-11 00:24:39 -08:00
Dave Airlie
efaba97eaa
radeon: fix prediction for r100 inline vert/elt emits.
...
On r100 we emit the indices inline so we need to account
for that in the emission size.
2010-01-11 13:27:20 +10:00
Dave Airlie
1294df9ca4
radeon: fix bug in realloc code.
...
This bug was fixed in libdrm ages ago, port to non-kms
2010-01-11 13:27:14 +10:00
Vinson Lee
4fe51c7447
glu/sgi: Initialize members of class Mesher.
2010-01-10 16:09:41 -08:00
Vinson Lee
1111b38a1b
glu/sgi: Initialize members of class Slicer.
2010-01-10 15:55:52 -08:00
Vinson Lee
b9bd96608c
glu/sgi: Include missing header file.
2010-01-10 03:03:14 -08:00
Vinson Lee
199dedd6dd
progs/demos: Check upper bounds of input in manywin.c.
2010-01-10 01:57:13 -08:00
Vinson Lee
0c7814fe23
progs/demos: Bounds check input to fire.c.
2010-01-10 00:40:46 -08:00
Vinson Lee
9e98c1fbf6
glu/sgi: Initialize members of class Renderhints.
2010-01-10 00:14:33 -08:00
Vinson Lee
a5815c36f7
glu/sgi: Initialize members of class StoredVertex.
2010-01-09 23:55:05 -08:00
Vinson Lee
61afd1158f
glu/sgi: Include missing header file.
2010-01-09 23:53:54 -08:00
Vinson Lee
f8737bda37
glu/sgi: Initialize member of class O_pwlcurve.
2010-01-09 23:25:49 -08:00
Vinson Lee
683e3cb8db
progs/tests: Silence 'missing initializer' warnings.
2010-01-08 23:08:57 -08:00
Vinson Lee
223c8482ca
progs/glsl: Silence uninitialized variable warning.
2010-01-08 22:10:52 -08:00
Vinson Lee
3b82de92a0
progs/demos: Add missing initializers in engine.c.
2010-01-08 22:02:49 -08:00
Vinson Lee
4775723d2f
r300g: Silence unused variable warnings.
2010-01-08 21:43:54 -08:00
Vinson Lee
20d6360db7
tgsi: Silence uninitialized variable warnings.
2010-01-08 20:24:05 -08:00
Jakob Bornecrantz
de37a00d27
util: Add u_bitmask to make build
2010-01-06 15:32:42 +01:00
Dan Nicholson
674c76310f
mesa: Ensure libmesagallium.a is finished building before descending
...
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com >
2010-01-08 06:09:19 -08:00
Vinson Lee
3c42e403de
r300: Move initial declaration outside for loop.
2010-01-08 01:13:46 -08:00
Brian Paul
5dd9e23d62
docs: document Gallium SSE codegen for XPD bug fix
2010-01-07 14:55:27 -07:00
Brian Paul
8647aa1d8d
tgsi: fix SSE code emit for XPD
...
Rearrange things so that the writes to the dest registers happen
after we've fetched/used all src registers.
The problematic instruction was: XPD TEMP[2].xyz, TEMP[0], TEMP[2];
Note that the dst reg is also a src reg.
This fixes bad shading with progs/glsl/bump.c since Eric's changes to the
Mesa program optimizer in commit d6690ce15f
.
The optimizer rearranges some registers so we occasionally wind up with
something like the above.
2010-01-07 14:49:14 -07:00
Brian Paul
2b7a4b2c0e
progs/fp: remove invalid tri-inv.c test
...
INV is not a valid instruction.
2010-01-07 08:22:39 -07:00
Vinson Lee
d42467687e
progs/demos: Assert that input to malloc is valid.
2010-01-06 21:39:44 -08:00
Vinson Lee
45ac10fe6a
progs/xdemos: Check for string overflow.
2010-01-06 18:19:46 -08:00
Vinson Lee
25ffd76278
progs/xdemos: Check for string overflow.
2010-01-06 18:08:41 -08:00
Vinson Lee
468f270f3f
svga: Silence uninitialized variable warning.
2010-01-06 17:51:08 -08:00
Brian Paul
ef7eb62423
meta: remove F suffix from _mesa_Ortho() params
...
_mesa_Ortho() takes GLdoubles.
2010-01-06 18:22:06 -07:00
Brian Paul
73bd400016
docs: document a mipmap generation bug fix
2010-01-06 18:20:17 -07:00
Brian Paul
cb3cb96fbd
meta: move destination vertex/projection setup out of _mesa_meta_GenerateMipmap
...
Based on a patch submitted by Pierre Willenbrock <pierre@pirsoft.de >
2010-01-06 18:20:17 -07:00
Brian Paul
06970b2ccb
meta: set viewport and projection matrix in _mesa_meta_GenerateMipmap
...
This fixes mipmap levels being clipped to the last viewport.
Based on a patch submitted by Pierre Willenbrock <pierre@pirsoft.de >
2010-01-06 18:20:17 -07:00
Andre Maasikas
49653c01e8
r600: adjust after radeon mipmap changes in 7118db8700
...
R600_OUT_BATCH_RELOC doesn't really use offset so set it
in TEX_RESOURCE2
+ typo fix
2010-01-06 19:52:24 -05:00
Brian Paul
8485811f10
tnl: set FOGC result to (f,0,0,1)
...
Fixed FDO bug 23397.
2010-01-06 17:43:56 -07:00
Vinson Lee
4c45810d57
progs/xdemos: Remove comma at end of enumerator list.
2010-01-06 15:35:18 -08:00
Vinson Lee
96a4e4552d
progs/xdemos: Use temporary variables.
...
This was missed from the previous commit to glxheads.c.
2010-01-06 15:33:13 -08:00
Vinson Lee
c1dad22d71
progs/glsl: Prevent possible string overflow.
2010-01-06 15:25:42 -08:00
Vinson Lee
f4952f040b
progs/xdemos: Prevent possible string overflow.
2010-01-06 14:56:43 -08:00
Pierre Ossman
c9befda13a
r600: float texture component ordering
...
The ordering of texture components was
backwards for the floating point textures.
Signed-off-by: Pierre Ossman <pierre@ossman.eu >
2010-01-06 12:42:49 -05:00
Roel Kluin
324568f79d
mesa: test index bounds before array element
...
Check whether the index is within bounds before accessing the array.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com >
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-01-06 09:47:37 -07:00
Roel Kluin
5db710a823
win32_menu: add missing parentheses in mapMenu()
...
`|' has higher precedence than `?'.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com >
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-01-06 09:46:55 -07:00
Roel Kluin
2b4acd26b1
nv50: add missing parentheses in nv50_query_result()
...
NOUVEAU_BO_RD is defined (1 << 2), and `|' has higher precedence than `?'
so the second argument of nouveau_bo_map was always 0.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com >
Signed-off-by: Brian Paul <brianp@vmware.com >
2010-01-06 09:46:53 -07:00
Brian Paul
e4b7d9ea35
i965: fix invalid assertion in emit_xpd(), again
2010-01-06 07:18:09 -07:00
José Fonseca
5b64d94390
pipebuffer: Multi-threading fixes for fencing.
...
I had this patch on my hard drive for long time. It doesn't fully
address SVGA multi-threading issues, but causes no regressions, so decided
to commit while it still applies cleanly.
Attention: merging this into master will cause issues due to recent
changes in reference counting to fix strict aliasing rules violation.
2010-01-06 12:18:16 +00:00
Brian Paul
e555146fa3
i965: fix invalid assertion in emit_xpd()
...
Invalid assertion found by Roel Kluin <roel.kluin@gmail.com >
2010-01-05 15:53:05 -07:00
Roel Kluin
766f3ccbda
tdfx: condition always evaluates to false in SetupDoubleTexEnvVoodoo3()
...
This can never be true.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com >
2010-01-05 14:42:28 -07:00
Brian Paul
9f544394c1
st/mesa: fix broken translation of negative register indexes
...
A src register's index can be negative if we're doing indirect
addressing into the constant buffer. Ex: MOV OUT[1], CONST[ADDR[0].x-3]
This fixes the piglit vp-arl-neg-array.vpfp test.
Before this change we were going out of bounds of the t->constants[]
array and getting garbage that later triggered an assertion.
2010-01-05 11:44:19 -07:00
Brian Paul
487a14b476
ARB prog parser: regenerated parser file
2010-01-05 11:44:19 -07:00
Brian Paul
f0f68b1e4c
ARB prog parser: fix parameter binding type
...
References to program local and enviroment parameters are put into the
unified program parameters list as PROGRAM_STATE_VAR entries which point
into the local or environment arrays. So the param_binding_type field
should be PROGRAM_STATE_VAR.
This fixes the piglit vpfp-generic vp-arl-env-array.vpfp and
vp-arl-local-array.vpfp test failures.
2010-01-05 11:44:19 -07:00
Brian Paul
e3514b7338
ARB prog parser: regenerated parser files
2010-01-05 11:44:19 -07:00
Brian Paul
7c6ae4c6c8
ARB prog parser: add allowSwizzle param to initialize_symbol_from_const()
...
We need to disable constant consolidation when building an array of
constants which might be indexed indirectly.
Fixes regression in piglit vpfp-generic vp-arl-constant-array.vpfp
test caused by earlier constant consolidation patch.
2010-01-05 11:44:19 -07:00
Brian Paul
37f6929d29
mesa: whitespace changes and comments
2010-01-05 11:44:19 -07:00
Brian Paul
f27e39aa4e
mesa: change constant search behaviour in _mesa_add_unnamed_constant()
...
Only search for an existing, matching constant if swizzleOut is non-null.
We need to be able to disable constant consolidation when building an
array of constants which will be indexed indirectly.
2010-01-05 11:44:19 -07:00
José Fonseca
38d8b18003
svga: Remove stale references to delete shader results.
...
To ensure that a new result that happens to have the same address
of the old one will be detected as a change.
2010-01-05 17:56:26 +00:00
José Fonseca
8ebef37c7b
svga: Rebind shaders when tokens change.
...
Even shader ID doesn't change. Otherwise the token change is not
effective.
This reverts regression from commit
cdb445f3a9
. Regression could be seen in
Quake3's loading screen -- the upper right corner of the screen would
be black.
2010-01-05 17:32:53 +00:00
Brian Paul
ef1b942691
st/mesa: added PROGRAM_LOCAL_PARAM case in src_register()
...
Fixes piglit vpfp-generic arl.vpfp failure when using gallium.
2010-01-05 09:14:50 -07:00
Brian Paul
bd96b51303
mesa: bump version to 7.7.1-DEVEL
2010-01-05 07:59:29 -07:00
Brian Paul
6d84580858
mesa: add missing _mesa_lock_texture() call
2010-01-04 19:05:31 -07:00
Eric Anholt
b434a816d7
i915: Use _MaxLevel on principle in texture setup.
...
It was OK before because we proceed to clamp the value to hardware
limits, but given that other use of MaxLevel has been a trap, let's
avoid it.
2010-01-04 14:15:12 -08:00
Eric Anholt
19a26dfc47
intel: Fix CopyTexImage from tiled mipmap levels > 0.
...
Fixes piglit fbo-copyteximage.
2010-01-04 14:15:12 -08:00
Eric Anholt
63610fae4f
i965: Fix the surface offset calculation for tiled buffers.
...
If we ever had a non-tile-aligned tiled renderbuffer, the math was all
off. Use the existing x,y coordinates instead of trying to
reconstruct them from an incorrectly-calculated offset value.
2010-01-04 14:15:12 -08:00
Andre Maasikas
a160d1c27d
r600: support vertex_array_bgra
...
Use vertex program key mechanism and swizzle during vertex fetch - is there
a better way?
2010-01-04 16:16:43 -05:00
Brian Paul
82421c549f
mesa: added GL_DU8DV8_ATI in extract_float_rgba()
...
Fixes warning seen with Shadowgrounds. See bug 24016.
2010-01-04 14:01:19 -07:00
Brian Paul
01bf004d8b
docs: initial release notes for 7.7.1
2010-01-04 14:01:18 -07:00
Vinson Lee
6130bb1391
mesa: Prevent possible array out-of-bounds access by _mesa_light.
2010-01-04 12:06:04 -08:00
Brian Paul
e661bf5018
mesa: regenerated enums.c file
2010-01-04 11:30:03 -07:00
Brian Paul
707faf65c8
glapi: comment-out TIMEOUT_IGNORED
...
This is not really a GLenum value.
2010-01-04 11:30:03 -07:00
Brian Paul
f52dd2ab33
glsl: use varName variable in _slang_gen_assignment()
2010-01-04 11:30:03 -07:00
Michel Dänzer
1e414df894
st/mesa: Only call st_texture_image_unmap() if texImage->Data is non-NULL.
...
This was already done in st_TexImage() but was missed between incremental
changes to st_TexSubimage().
2010-01-04 16:54:29 +01:00
Michel Dänzer
acd1451393
svga: Fix debug build crash when rendering to depth/stencil renderbuffer only.
2010-01-04 13:05:43 +01:00
Michel Dänzer
c114f000df
st/xorg: Proper calculation of screen pitch.
2010-01-04 13:04:05 +01:00
Michel Dänzer
8282185752
vmware/xorg: Fix SCons build.
2010-01-04 13:02:40 +01:00
Vinson Lee
d1e2fc19cc
r300: Use C-style comments.
2010-01-03 23:33:32 -08:00
Vinson Lee
8a29e3f8e8
progs/egl: Silence uninitialized variable warnings.
2010-01-03 21:39:20 -08:00
Vinson Lee
3ea5a95078
progs/samples: Silence compiler warnings.
2010-01-03 21:29:33 -08:00
Vinson Lee
b14cbfaebc
r300: Silence 'mixed declarations and code' warnings.
2010-01-03 20:51:23 -08:00
Vinson Lee
0214b7b3c1
r300: Silence 'mixed declarations and code' warning.
2010-01-03 20:16:59 -08:00
Vinson Lee
58531029e6
r300: Silence 'mixed declarations and code' warning.
2010-01-03 18:32:07 -08:00
Vinson Lee
3e196f433d
r300g: Silence 'mixed declarations and code' warning.
2010-01-03 18:05:12 -08:00
Vinson Lee
fe3ea299bf
r300g: Remove comma at end of enumerator list.
2010-01-03 15:07:35 -08:00
Vinson Lee
0bfc579bd4
llvmpipe: Remove comma at end of enumerator list.
2010-01-03 14:42:36 -08:00
José Fonseca
eb5d9e6f70
mesa: Cope with the degenerate case of zero length ranges.
...
Fixes assertion failures on glean's bufferObject test.
2010-01-03 20:00:19 +00:00
José Fonseca
f3739bdb60
gdi: Don't generate import libraries for opengl32.dll.
...
Both MinGW and MSVC include opengl32 import libraries, and its safer to
always use those.
2010-01-03 20:00:19 +00:00
Jeremy Huddleston
287cbba9b7
apple: Purge existing (not working) GLX_USE_APPLEGL from dated libGL on OSX
...
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org >
2010-01-03 08:58:13 -05:00
Jeremy Huddleston
32305e3a9f
glxcmds: Fix comment about __DRI_ALLOCATE
...
Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org >
2010-01-03 08:58:13 -05:00
Vinson Lee
1d95544446
trace: Remove comma at end of enumerator list.
2010-01-03 03:08:40 -08:00
José Fonseca
66c1de77ed
rtasm: Play nicely with Windows's Data Execution Prevention.
2010-01-03 11:03:13 +00:00
Vinson Lee
1da47ac20e
progs/vp: Ensure null-terminated byte string.
2010-01-03 02:38:22 -08:00
Vinson Lee
c9c6e9a39e
progs/tests: Silence uninitialized variable warning.
2010-01-02 21:58:40 -08:00
Vinson Lee
32d18924df
progs/tests: Silence warn_unused_result warning.
2010-01-02 21:52:51 -08:00
Vinson Lee
d27effbfd8
i810: Fix include recursion.
2010-01-02 21:05:06 -08:00
Vinson Lee
94c5faad26
sis: ifdef out unused variable.
...
Silences GCC warning.
2010-01-02 20:47:15 -08:00
Vinson Lee
d2758f3b74
st/xorg: Ensure null-terminated byte string.
2010-01-02 20:39:04 -08:00
Vinson Lee
be6fb5c083
r300g: Use C-style comments.
2010-01-02 20:17:43 -08:00
Vinson Lee
fe27b07b0f
glu/sgi: Initialize members of struct O_curve.
2010-01-02 20:04:00 -08:00
José Fonseca
cdb445f3a9
svga: Use a shader id as low as possible.
2010-01-03 00:50:13 +00:00
José Fonseca
904917dcc6
util: Minor enhancements/corrections to the bitmask logic.
2010-01-03 00:50:13 +00:00
José Fonseca
da6a80301b
svga: Rename error labels.
...
Make it easier to insert/remove error branches.
2010-01-03 00:50:12 +00:00
Vinson Lee
386f91eec3
glu/sgi: Initialize members of struct O_surface.
2010-01-02 15:46:11 -08:00
Vinson Lee
ba9dc26eec
glu/sgi: Initialize member of struct O_trim.
2010-01-02 15:29:25 -08:00
Vinson Lee
37e5626111
glu/sgi: Initialize member of struct Property.
2010-01-01 23:01:03 -08:00
Vinson Lee
646c8ce032
progs/samples: 'Silence no previous prototype' warnings.
2010-01-01 17:54:11 -08:00
Vinson Lee
2c64e4c50e
glu/sgi: Initialize member of struct Dlnode.
2010-01-01 17:25:16 -08:00
Vinson Lee
64a1961011
glu/sgi: Initialize members of struct O_nurbscurve.
2010-01-01 17:19:27 -08:00
Vinson Lee
fab161f287
x86: Silence printf format warnings.
2010-01-01 17:06:16 -08:00
Vinson Lee
ad9defdd9c
progs/rbug: s/wait/rbug_wait/
...
wait conflicts with wait in /usr/include/sys/wait.h.
2010-01-01 16:25:37 -08:00
Vinson Lee
3ae37da611
llvmpipe: Silence uninitialized variable warning.
2010-01-01 16:03:53 -08:00
Vinson Lee
fd237a879f
llvmpipe: Use C-style comment.
2010-01-01 15:38:19 -08:00
Vinson Lee
dac82c378a
gallium/util: Silence format warnings.
2010-01-01 15:32:52 -08:00
Vinson Lee
88bd32383a
ARB prog parser: Silence unused variable warnings.
2010-01-01 15:12:58 -08:00
Vinson Lee
7df06e7e9d
gallium/util: Replace h_addr with h_addr_list[0].
...
Fixes compilation error on Mac OS.
2010-01-01 15:01:22 -08:00
Vinson Lee
a349687d49
glu/sgi: Initialize members of class Knotvector.
2010-01-01 14:46:30 -08:00
Vinson Lee
5d3d202ac9
glu/sgi: Initialize member of struct Property.
2010-01-01 14:39:16 -08:00
Brian Paul
195e7657e2
swrast: use different temp array in _swrast_get_dest_rgba()
...
When using multiple color drawbuffers with blending/logicop/masking we
were overwriting color values which we still needed.
2009-12-31 08:44:27 -07:00
Vinson Lee
6e0584932b
mesa: Silence unused variable warning.
2009-12-31 00:07:47 -08:00
Vinson Lee
5b2713c92a
progs/glsl: Provide a better fix for fgets warning.
2009-12-30 12:38:21 -08:00
Brian Paul
f00bf0598c
st/mesa: add PIPE_FORMAT_Z24S8_UNORM in st_get_format_info()
...
Fixes progs/demos/fbotexture on Nouveau.
Patch submitted by Luca Barbieri <luca@luca-barbieri.com >.
2009-12-29 23:31:43 -07:00
Vinson Lee
de95e5768b
glu/sgi: Initialize members of struct O_nurbssurface.
2009-12-29 22:29:53 -08:00
Vinson Lee
ac21edff1c
tdfx: Silence uninitialized variable warning.
2009-12-29 21:34:06 -08:00
Vinson Lee
0ab29d2b35
progs/glsl: Silence compiler warnings.
2009-12-29 21:11:37 -08:00
Vinson Lee
70bbe22366
glu/sgi: Silence warn_unused_result warnings.
2009-12-29 21:03:23 -08:00
Vinson Lee
31263f41a0
st/xorg: Use C-style comments.
2009-12-29 20:56:47 -08:00
Vinson Lee
97b899374c
glu/sgi: Initialize member of struct GridVertex.
2009-12-29 20:45:24 -08:00
Jakob Bornecrantz
5169775345
st/xorg: Fix warning and add a TODO comment
2009-12-30 05:08:41 +01:00
Jakob Bornecrantz
d34fdf149d
st/xorg: On close wait on fences and then destroy the screen
2009-12-30 05:01:09 +01:00
Jakob Bornecrantz
5fdc4f732f
st/xorg: Be proper with pipe pointers on close in exa
2009-12-30 05:00:30 +01:00
Jakob Bornecrantz
53e314cb80
st/xorg: Make sure we don't overrun the fence array in block handler
2009-12-30 04:22:12 +01:00
Vinson Lee
3bcf7d7d7b
glu/sgi: Initialize member variables in class Varray.
2009-12-29 17:46:42 -08:00
Vinson Lee
a7db305c2f
glu/sgi: Initialize member of class monoChain.
2009-12-29 17:35:22 -08:00
Vinson Lee
5060fb428d
glu/sgi: Initialize members of class sampledLine.
2009-12-29 17:22:11 -08:00
Vinson Lee
495b8f8f7a
glu/sgi: Initialize members of class directedLine.
2009-12-29 14:28:33 -08:00
Vinson Lee
62a0d4ef7f
mesa: Initialize variable in get_tex_color_index.
2009-12-29 13:38:02 -08:00
Brian Paul
4f481cb87a
glsl: added uniform initializer check
...
GLSL 1.10 disallows initializers for uniforms but GLSL 1.20 and later
allows them. This patch uses the #version directive to allow/disallow
uniform initializers.
This addresses bug 25807, but piglit also needs to be fixed to specify
the GLSL version in the shader.
2009-12-29 10:11:29 -07:00
Brian Paul
639e7a140e
ARB prog parser: use _mesa_add_unnamed_constant() to use fewer constant slots
...
This function will search the constant parameters in an effort to re-use
constant slots. For example, {1,2,3,4} and {4,1,1,2} can be stored in
one constant slot and accessed with different swizzles. The swizzle info
must be propogated though the parsing code in a few places.
Fixes Piglit "vpfp-generic tests/shaders/generic/big-param.vpfp" failure.
2009-12-29 09:08:02 -07:00
Vinson Lee
b4658dbf04
st/egl: Move declaration before code.
2009-12-28 19:09:33 -08:00
Vinson Lee
c67bb15d4e
intel: Silence compiler warnings.
2009-12-28 18:46:15 -08:00
Vinson Lee
46c2196de3
llvmpipe: Fix assert.
2009-12-28 18:07:09 -08:00
Vinson Lee
e049ddb754
llvmpipe: Silence compiler warnings.
2009-12-28 18:05:30 -08:00
Keith Whitwell
f0ba7d897d
util: better fix for unused variable warnings with asserts
...
Modify the non-debug (ie disabled) version of assert to expose the
value in the expression to the compiler (avoiding the unused variable
messages) while still expanding to a noop.
2009-12-28 11:06:11 +00:00
Vinson Lee
31d1822473
llvmpipe: Silence compiler warnings.
2009-12-28 00:44:30 -08:00
Vinson Lee
c441386b0c
st/xorg: Silence unused variable warnings.
2009-12-27 23:02:55 -08:00
Vinson Lee
aa0437532e
g3dvl: Silence compiler warnings.
2009-12-27 22:49:49 -08:00
Vinson Lee
bf63b9d7a9
st/vega: Silence compiler warnings.
2009-12-27 22:39:31 -08:00
Vinson Lee
9d3092d134
gallium/xlib: Silence unused variable warning.
2009-12-27 22:18:18 -08:00
Vinson Lee
d1f64fa72f
trace: Silence unused variable warnings.
2009-12-27 18:12:58 -08:00
Vinson Lee
f31f9cf485
i915g: Silence unused variable warning.
2009-12-27 18:09:58 -08:00
Vinson Lee
3a2f96f18a
softpipe: Silence unintialized variable warnings.
2009-12-27 18:06:02 -08:00
Vinson Lee
180ccffe55
softpipe: Silence unused variable warning.
2009-12-27 17:52:47 -08:00
Vinson Lee
0463ee64e3
tgsi/ureg: Silence uninitialized variable warnings.
2009-12-27 17:40:48 -08:00
Brian Paul
b0d5e44f24
docs: insert 7.7 release date
2009-12-27 15:33:25 -07:00
Brian Paul
d0b7ff551a
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
...
Conflicts:
src/gallium/auxiliary/util/u_network.c
src/gallium/auxiliary/util/u_network.h
src/gallium/drivers/i915/i915_state.c
src/gallium/drivers/trace/tr_rbug.c
src/gallium/state_trackers/vega/bezier.c
src/gallium/state_trackers/vega/vg_context.c
src/gallium/state_trackers/xorg/xorg_crtc.c
src/gallium/state_trackers/xorg/xorg_driver.c
src/gallium/winsys/xlib/xlib_brw_context.c
src/mesa/main/mtypes.h
2009-12-27 15:31:08 -07:00
Brian Paul
da876fa3a5
docs: insert 7.6.1 release date
2009-12-27 15:14:25 -07:00
Brian Paul
7831515e69
st/mesa: add missing case for PIPE_FORMAT_B8G8R8A8_UNORM
2009-12-27 10:09:24 -07:00
Vinson Lee
331e910b5c
gallium/util: Remove comma at end of enumerator list.
2009-12-26 16:22:25 -08:00
Vinson Lee
3c2fd1bae0
rbug: Remove comma at end of enumerator list.
2009-12-26 16:18:47 -08:00
Vinson Lee
f8ca25e02f
rbug: Remove comma at end of enumerator list.
2009-12-26 16:14:39 -08:00
Vinson Lee
fc11424bcd
mesa: Remove comma at end of enumerator list.
2009-12-26 16:09:41 -08:00
Vinson Lee
309c156bae
i915: Fix assert.
2009-12-26 15:55:38 -08:00
Vinson Lee
e81fe088f4
progs/demos: Silence warn_unused_result warnings.
2009-12-26 01:08:26 -08:00
Vinson Lee
cdc69e3469
progs/util: Silence warn_unused_result warnings.
2009-12-25 23:13:50 -08:00
Vinson Lee
cd59e6f553
intel: Silence implicit function declaration warning.
2009-12-25 22:34:35 -08:00
Vinson Lee
67a4abcc3b
glu/sgi: Fix include recursion.
...
arcsorter.h should not include itself.
2009-12-25 14:23:10 -08:00
Vinson Lee
2447786ed0
i965: Fix assert.
2009-12-24 22:58:05 -08:00
Vinson Lee
f5ad1d0d02
i965: Add missing va_end.
2009-12-24 16:26:09 -08:00
Vinson Lee
098f10c270
glsl: Initialize member a_obj of struct slang_operation.
2009-12-23 18:00:06 -08:00
Vinson Lee
261c3cd530
glu/sgi: Initialize variable in directedLine.
2009-12-23 17:50:02 -08:00
Vinson Lee
520955a0cd
gallium/util: Initialize variable in util_clear.
2009-12-23 16:22:03 -08:00
Vinson Lee
6138145b35
glu/sgi: Silence compiler warnings.
2009-12-23 16:11:10 -08:00
Vinson Lee
51dcea2aac
util: Ensure debug_dump_flags generates a null-terminated string.
2009-12-23 15:19:45 -08:00
Vinson Lee
2ea061509d
st/xorg: Use C-style comments.
2009-12-23 14:52:06 -08:00
Vinson Lee
15ecd0337e
st/vega: Move declaration outside for loop.
2009-12-23 14:43:53 -08:00
Vinson Lee
1b0ab3e3c9
st/egl: Use C-style comments.
2009-12-23 14:18:11 -08:00
Vinson Lee
6c8c1ce78b
glx: Add XF86DRI[Open|Close]FullScreen prototypes to xf86dri.h.
2009-12-23 14:09:36 -08:00
Vinson Lee
cf3bb0cf31
glx: Move declaration outside for loop.
2009-12-23 12:42:38 -08:00
Tom Fogal
f42c861f02
Regenerate gl_mangle.h.
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-12-23 11:38:14 -07:00
Maarten Maathuis
8e8502bc63
gallium: only create pipe buffer when size is nonzero
...
- This fixes a crash upon starting spring (a rts engine/game).
Signed-off-by: Maarten Maathuis <madman2003@gmail.com >
2009-12-23 16:33:54 +00:00
Vinson Lee
57b5ca5d11
glu/sgi: Silence uninitialized variable warnings.
2009-12-22 23:07:00 -08:00
Vinson Lee
19a40524d3
Add gallium to darwin config.
2009-12-22 18:21:41 -08:00
Vinson Lee
aae32df718
xlib: Use C-style comments.
2009-12-22 17:51:58 -08:00
Vinson Lee
b20382d477
trace: Silence uninitialized variable warnings.
2009-12-22 17:34:39 -08:00
Vinson Lee
f6ca26e5a7
trace: Add PIPE_OS_APPLE.
2009-12-22 17:17:28 -08:00
Vinson Lee
6ce28a755c
gallium/util: Add PIPE_OS_APPLE to u_stream_stdc.c.
2009-12-22 16:23:00 -08:00
Vinson Lee
5e73bcb396
gallium/util: Add PIPE_OS_APPLE to u_network.
2009-12-22 15:59:50 -08:00
Vinson Lee
fb8bff341e
i915g: Use C-style comment.
2009-12-22 15:19:48 -08:00
Vinson Lee
cf02484fb6
glx: Compile dri2.c only if GLX_DIRECT_RENDERING is defined.
2009-12-22 14:51:12 -08:00
Vinson Lee
c1033299e8
ffb: Silence compiler warnings.
2009-12-22 14:28:40 -08:00
Brian Paul
b5ddc7821a
mesa: fix binary() function, printf format string
...
Need to use the constant 1ULL and 0xllx format string. This fixes incorrect
results and a NULL pointer/parameter bug.
2009-12-22 13:33:40 -07:00
Vinson Lee
1bf2d78b11
progs/tests: Fix build.
2009-12-22 00:54:34 -08:00
Ian Romanick
82184970d3
Add MD5 checksums for 7.6.1 release
2009-12-21 18:43:09 -08:00
Ian Romanick
e9b5ed1c13
Add MD5 checksums for 7.6.1 release
2009-12-21 18:32:32 -08:00
Ian Romanick
6ffed19993
Add MD5 checksums for 7.7 release
2009-12-21 18:30:35 -08:00
Ian Romanick
7e210b9337
mesa: set version string to 7.7
2009-12-21 18:28:32 -08:00
Ian Romanick
164b583852
intel: Bump driver date to reflect status as final Q4 driver RC
2009-12-21 18:27:50 -08:00
Ian Romanick
48302e9b30
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
...
Conflicts:
scons/gallium.py
scons/generic.py
src/mesa/main/version.h
2009-12-21 18:27:24 -08:00
Ian Romanick
75ad099d3c
mesa: set version string to 7.6.1
2009-12-21 18:25:30 -08:00
Vinson Lee
982acbddab
progs/perf: Fix MSVC build.
...
(cherry picked from commit cbf46ed670
)
2009-12-21 18:10:44 -08:00
José Fonseca
09415ca234
mesa: Fix missing finite symbol error on Windows.
...
Caused by some weird logic regarding the __WIN32__ define which made
the finite definition dependent on the header include order.
(cherry picked from commit 622bdecabd
)
2009-12-21 17:56:25 -08:00
Michal Krol
de7021b71c
mesa: Include <unistd.h> only when one is available.
...
(cherry picked from commit 970823978c
)
2009-12-21 17:55:13 -08:00
Vinson Lee
2b7b2b90e3
scons: Define _USE_MATH_DEFINES on MSVC.
2009-12-21 17:25:03 -08:00
Brian Paul
b57abd3bea
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
...
Conflicts:
configure.ac
progs/demos/morph3d.c
progs/demos/textures.c
progs/glsl/shtest.c
progs/glsl/texaaline.c
progs/tests/packedpixels.c
progs/xdemos/corender.c
src/mesa/main/version.h
2009-12-21 18:23:53 -07:00
Fabio Pedretti
bf064ce0c3
configure.ac: fix for libdrm_radeon API changes.
2009-12-22 10:44:53 +10:00
Fabio Pedretti
e46ad402f1
configure.ac: fix for libdrm_radeon API changes.
2009-12-22 10:44:28 +10:00
Dave Airlie
bd9e0ebaff
radeon/r600: use new libdrm_radeon api
2009-12-22 10:25:47 +10:00
Dave Airlie
bce03f7174
radeon: drop assert accessing cref which is meant to be hidden
2009-12-22 10:25:05 +10:00
Dave Airlie
34671efa29
radeon: drop unused members of radeon_state.
2009-12-22 10:24:57 +10:00
Dave Airlie
e77bfc436d
r600: move structs for legacy cmdbuf into cmdbuf C file.
...
these really shouldn't be exposed here
2009-12-22 10:24:47 +10:00
Dave Airlie
9373287a1b
radeon/r600: use new libdrm_radeon api
2009-12-22 10:23:41 +10:00
Dave Airlie
9d2910ee0f
radeon: drop assert accessing cref which is meant to be hidden
2009-12-22 10:23:41 +10:00
Dave Airlie
43d8727301
radeon: drop unused members of radeon_state.
2009-12-22 10:23:40 +10:00
Dave Airlie
1703628011
r600: move structs for legacy cmdbuf into cmdbuf C file.
...
these really shouldn't be exposed here
2009-12-22 09:58:33 +10:00
Vinson Lee
07b54fe35b
progs/redbook: Silence compiler warnings.
2009-12-21 15:20:01 -08:00
Brian Paul
fdae39c289
progs/perf: added check for GL_ARB_framebuffer_object
2009-12-21 13:49:25 -07:00
Brian Paul
79e74cda73
progs/demos: report pixel rate in million pixels / sec
2009-12-21 13:49:25 -07:00
Dave Airlie
753f0a1dea
r600: fix glFrontFace(GL_CW)
...
fd.o bug #25290
Suggested fix from Rafael Monica
2009-12-21 10:40:19 -05:00
Younes Manton
ace937f165
st/mesa: Check for single level mipmap trees.
...
The assert in util_gen_mipmap() caught it, although
it does the right thing anyway.
2009-12-21 00:59:06 -05:00
Jeremy Huddleston
b96a5df514
darwin: mklib: Use lipo rather than file to figure out architectures of object files
...
(cherry picked from commit ad7f9d71e2
)
2009-12-20 21:36:41 -08:00
Jeremy Huddleston
f926eff263
darwin: Cleanup CPPFLAGS a bit
...
(cherry picked from commit 4a1e103858
)
2009-12-20 21:36:39 -08:00
Vinson Lee
0dd9513874
progs/tests: Silence compiler warnings.
2009-12-20 01:01:00 -08:00
Vinson Lee
d87d71036c
progs/trivial: Use C-style comments.
2009-12-19 00:28:01 -08:00
Vinson Lee
3340fd65fb
progs/xdemos: Use C-style comment.
2009-12-19 00:00:56 -08:00
Vinson Lee
695adf41e2
progs/demos: Silence compiler warning in morph3d.c.
2009-12-18 23:46:14 -08:00
Vinson Lee
121ff55d81
progs/glsl: Use C-style comments.
2009-12-18 23:38:15 -08:00
Vinson Lee
41377942d3
progs/demos: Use C-style comment.
2009-12-18 23:34:28 -08:00
Brian Paul
0478b745fe
glsl: clear out shader code before compiling
...
When we start compiling a shader, first free the existing gl_program.
This (mostly) fixes the piglit glsl-reload-source test.
Without this change, we were actually appending the new GPU code
onto the previous program.
2009-12-18 11:57:17 -07:00
Alex Deucher
20ee275974
r600: Invert front face winding when rendering to FBO
...
fixes fdo bug 25679
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2009-12-16 16:18:22 -05:00
Ian Romanick
aeea8a07b8
mesa: set version string to 7.6.1-rc4
2009-12-16 10:13:41 -08:00
Brian Paul
8a09e6e2ad
mesa: add missing semicolon
...
See bug 25663.
2009-12-16 10:39:26 -07:00
Brian Paul
35ff190a9c
docs: document 7.6.1 BlueGene fixes
2009-12-16 08:17:43 -07:00
Brian Paul
138d639ec9
mesa: test for __blrts for CPU_TO_LE32()
...
See bug 25663.
2009-12-16 08:04:25 -07:00
Brian Paul
a43fc39585
mesa: no dlopen on BlueGene
...
See bug 25663.
2009-12-16 08:02:56 -07:00
Brian Paul
6f202b53b0
mesa: remove //-style comments
2009-12-16 07:58:54 -07:00
Brian Paul
ddfc2e7439
st/mesa: remove //-style comments
2009-12-16 07:58:54 -07:00
Vinson Lee
dc0a1ebc73
unichrome: Silence compiler warnings.
2009-12-15 17:39:30 -08:00
Vinson Lee
a60457b03b
sis: Silence compiler warnings.
2009-12-15 17:06:01 -08:00
Vinson Lee
7e3825abdb
savage: Silence compiler warnings.
2009-12-15 16:32:51 -08:00
Vinson Lee
ca02109e91
r128: Silence uninitialized variable warnings in r128_tris.c.
2009-12-15 13:12:12 -08:00
Vinson Lee
7430c3ac35
dri: Initialize variable in driBindContext.
2009-12-15 13:04:25 -08:00
Ian Romanick
f23d01e726
intel: Fallback to software if drawable size is > MaxRenderbufferSize
...
This prevents the mystery blank window if, for example, glxgears is
resized larger than 2048 wide on 915. Since the Intel drivers in Mesa
7.6 lack GTT mapped fallbacks, the performance is a slideshow at
best. On Mesa 7.7 and later the performance is much better.
2009-12-15 12:37:09 -08:00
Vinson Lee
987e9188d2
x86: ifdef out unused function cptr.
2009-12-15 12:32:48 -08:00
Matthew Bell
22d2547ad1
mesa: Add missing $(DESTDIR) support to src/gallium/winsys/xlib/Makefile
2009-12-14 21:58:19 -07:00
Vinson Lee
0a8d508854
progs/trivial: Silence compiler warnings.
2009-12-14 18:11:57 -08:00
Vinson Lee
6e5fe39f50
mga: Silence uninitialized variable warnings.
2009-12-14 17:30:15 -08:00
Vinson Lee
b18fa9f448
mach64: Silence uninitialized variable warnings.
2009-12-14 17:20:34 -08:00
Vinson Lee
6c9870b54c
i810: Silence uninitialized variable warnings in i180tris.c
2009-12-13 00:14:31 -08:00
Vinson Lee
555dc25c4c
swrast: Silence uninitialized variable warnings in s_triangle.c
2009-12-12 23:47:32 -08:00
Vinson Lee
aa44efb045
st/mesa: Silence uninitialized variables warnings in st_draw.c.
2009-12-12 22:17:16 -08:00
Vinson Lee
0aef54ba62
swrast: Silence uninitialized variable warnings in ss_tritmp.h.
2009-12-12 22:00:19 -08:00
Vinson Lee
89d85e8170
glut: Prevent potential double free in menuVisualSetup.
2009-12-12 21:46:13 -08:00
Vinson Lee
20590b9733
t_dd_dmatmp.h: Silence unused value warning in render_poly_elts.
2009-12-12 20:20:02 -08:00
Vinson Lee
cd1a09e3bb
glsl: Initialize member label of struct slang_operation to NULL.
2009-12-12 18:42:18 -08:00
Vinson Lee
f8d4ac56f7
softpipe: Initialize source in blend_quad.
2009-12-12 18:34:15 -08:00
Vinson Lee
7ea452dd35
t_dd_dmatmp2.h: Silence unused value warnings.
2009-12-12 16:56:07 -08:00
Vinson Lee
75e8dbb235
i915g: Silence unused value warning in intel_drm_get_device_id.
2009-12-12 16:24:25 -08:00
Vinson Lee
9dc018618d
t_dd_dmatmp.h: Silence unused value warnings in render_line_loop_elts.
2009-12-12 16:18:08 -08:00
Vinson Lee
af4e4a73f7
t_dd_dmatmp.h: Silence unused value warning in render_tri_fan_elts.
2009-12-12 16:02:09 -08:00
Vinson Lee
588e9f69c4
progs/trivial: Silence compiler warnings in tri-blend-min.c.
2009-12-12 15:47:17 -08:00
Vinson Lee
de9132f274
t_dd_dmatmp.h: Silence unused value warning in render_poly_verts.
2009-12-12 15:27:30 -08:00
Vinson Lee
1e444c9960
swrast: Initialize tex_coords in handle_sample_op.
2009-12-12 15:08:01 -08:00
Vinson Lee
c1d361bd0b
t_dd_dmatmp.h: Silence unused value warning in render_quads_verts.
2009-12-12 14:41:35 -08:00
Vinson Lee
786899f153
progs/trivial: Silence compiler warnings in tri-blend-max.c
2009-12-12 14:20:17 -08:00
Vinson Lee
7d529736b9
t_dd_dmatmp.h: Silence unused value warning in render_tri_fan_verts.
2009-12-12 13:39:39 -08:00
Vinson Lee
c2cee7741e
t_dd_dmatmp.h: Silence unused value warning in render_line_loop_verts.
2009-12-12 12:52:02 -08:00
Vinson Lee
15c6558a2e
progs/xdemos: Silence compiler warnings in glxinfo.c.
2009-12-12 02:06:51 -08:00
Vinson Lee
d5be33477e
progs/tests: Silence compiler warnings in vpeval.c.
2009-12-12 01:34:33 -08:00
Vinson Lee
44d6ab6de5
progs/tests: Silence compiler warnings in cva.c.
2009-12-12 01:11:56 -08:00
Vinson Lee
9e2eee4ab2
progs/redbook: Silence compiler warnings in aaindex.c.
2009-12-12 01:02:16 -08:00
Vinson Lee
81dcf8bdf2
t_dd_dmatmp.h: Silence unused value warning in render_line_loop_verts.
2009-12-12 00:33:42 -08:00
Brian Paul
7d41b4248b
docs: updated 7.6.1 relnotes with GLSL fixes
2009-12-11 09:41:34 -07:00
Brian Paul
d8f8eca9ef
mesa: remove unnecessary loop in _mesa_remove_output_reads()
2009-12-11 09:40:33 -07:00
Brian Paul
5076a4f53a
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.
2009-12-11 09:16:27 -07:00
Aurelien Jarno
f7f1211b9b
sparc: additional preprocessor test for SPARC 64-bit
2009-12-11 08:46:54 -07:00
Vinson Lee
94fba49be9
mesa: Initialize variable in MatchInstruction.
2009-12-10 18:51:51 -08:00
Vinson Lee
e31df54754
mesa: Assign _mesa_lookup_parameter_index return value to GLint.
2009-12-10 18:32:33 -08:00
Vinson Lee
cb1dcb55f9
i915: Add missing break statement in i915_debug_packet.
2009-12-10 18:21:59 -08:00
Vinson Lee
d38ffed523
glsl: Increase size of array in_slang_lookup_constant from 4 to 16.
...
For some cases, _mesa_GetIntegerv reads up to params[15].
2009-12-10 17:52:31 -08:00
Vinson Lee
1cf60c9810
progs/samples: Byte swap individual members of struct _rawImageRec.
2009-12-10 15:41:13 -08:00
Vinson Lee
bc0509bba8
progs/util: Byte swap individual members of struct _rawImageRec.
2009-12-10 13:24:15 -08:00
Vinson Lee
51f52edaf1
glsl: Fix array out-of-bounds access by _slang_lookup_constant.
2009-12-10 12:37:10 -08:00
Vinson Lee
dcb4a37fc8
mesa: Fix array out-of-bounds access by _mesa_TexParameteriv.
2009-12-10 12:11:09 -08:00
Vinson Lee
b827578805
mesa: Fix array out-of-bounds access by _mesa_TexGend.
...
_mesa_TexGend calls _mesa_TexGenfv, which uses the params argument
as an array.
2009-12-09 17:59:23 -08:00
Vinson Lee
444d1f3910
mesa: Fix array out-of-bounds access by _mesa_Lighti.
...
_mesa_Lighti calls _mesa_Lightiv, which uses the params argument
as an array.
2009-12-09 17:34:50 -08:00
Vinson Lee
34528a34c4
mesa: Fix array out-of-bounds access by _mesa_Lightf.
2009-12-09 17:11:30 -08:00
Vinson Lee
348883076b
mesa: Fix array out-of-bounds access by _mesa_PointParameteri.
...
_mesa_PointParameteri calls _mesa_PointParameterfv, which uses the
params argument as an array.
2009-12-09 13:15:05 -08:00
Vinson Lee
6f2d51b81f
mesa: Fix array out-of-bounds access by _mesa_PointParameterf.
...
_mesa_PointParameterf calls _mesa_PointParameterfv, which uses the
params argument as an array.
2009-12-09 13:00:22 -08:00
Vinson Lee
637970aefd
mesa: Fix array out-of-bounds access by _mesa_LightModelf.
...
_mesa_LightModelf calls _mesa_LightModelfv, which uses the
params argument as an array.
2009-12-09 12:43:28 -08:00
Vinson Lee
a082d965de
glsl: Remove unused member x from struct slang_operation.
2009-12-09 11:26:24 -08:00
Brian Paul
3de8fff45d
mesa: fix baseLevel >= MAX_TEXTURE_LEVELS test
...
This fixes invalid array indexing when baseLevel == MAX_TEXTURE_LEVELS.
See bug 25528.
2009-12-09 08:30:05 -07:00
Andre Maasikas
33a120e476
r600: fix state size prediction after dc0777d3
2009-12-09 10:51:52 +02:00
Vinson Lee
af16c822a5
mesa: Fix array out-of-bounds access by _mesa_LightModeli.
...
_mesa_LightModeli calls _mesa_LightModeliv, which uses the
params argument as an array.
2009-12-08 18:26:05 -08:00
Vinson Lee
d33bf38d63
mesa: Fix array out-of-bounds access by _mesa_Fogf.
...
_mesa_Fogf calls _mesa_Fogfv, which uses the params argument
as an array.
2009-12-08 17:51:07 -08:00
Vinson Lee
3f7c2ac279
mesa: Fix array out-of-bounds access by _mesa_TexParameteri.
...
_mesa_TexParameteri calls set_tex_parameteri, which uses the
params argument as an array.
2009-12-08 17:25:05 -08:00
Vinson Lee
7f146b3824
mesa: Fix array out-of-bounds access by _mesa_Fogi.
...
_mesa_Fogi calls _mesa_Fogfv, which uses the params argument
as an array.
2009-12-08 16:08:41 -08:00
Vinson Lee
a1d46fbea0
mesa: Fix array out-of-bounds access by _mesa_TexParameteri.
...
_mesa_TexParameteri calls set_tex_parameterf, which uses the
params argument as an array.
2009-12-08 15:42:13 -08:00
Vinson Lee
d88f3b9468
mesa: Fix array out-of-bounds access by _mesa_TexParameterfv.
...
_mesa_TexParameterfv calls set_tex_parameteri, which uses the
params argument as an array.
2009-12-08 14:33:33 -08:00
Brian Paul
54b0ed8360
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.
2009-12-08 15:03:22 -07:00
Thomas Hellstrom
f44f6473e6
st/xorg Fail early if we don't intend to accelerate.
...
Saves a number of unneeded computations and log noise.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com >
2009-12-08 12:50:27 +01:00
Jeremy Huddleston
189ee75abb
darwin: mklib: Use lipo rather than file to figure out architectures of object files
...
(cherry picked from commit ad7f9d71e2
)
2009-12-20 21:36:58 -08:00
Jeremy Huddleston
da5741cf53
darwin: Cleanup CPPFLAGS a bit
...
(cherry picked from commit 4a1e103858
)
2009-12-20 21:36:56 -08:00
Eric Anholt
6785d6741d
i915: Fix GL_TEXTURE_MAX_LEVEL support (piglit levelclamp test).
2009-12-18 20:35:57 -08:00
Eric Anholt
b51e0fafdf
i915: Clean up some unnecessary x/y miptree code.
...
The base of the texture is always the base of the miptree. If it wasn't,
we'd have issues with this code due to miptrees not walking the same
direction for all LODs.
2009-12-18 20:35:57 -08:00
Eric Anholt
f06c8bd8dd
i965: Add support for OPCODE_CMP in the VS to fix GLSL sqrt()
...
Bug #25628 . Fixes piglit case glsl-vs-sqrt-zero.
2009-12-18 20:35:57 -08:00
Keith Whitwell
325f045c04
st/mesa: move assert on nr vs insns until after pos_invarient expansion
...
It is possible to have a 1-instruction vertex shader before expanding
pos_invarient. Not sure what this assert achieved, but at least move
it where it is correct.
2009-12-18 18:39:44 +00:00
Vinson Lee
1de1deffce
i915g: Fix memory leak when pci id is unknown.
2009-12-08 00:43:38 -08:00
Vinson Lee
7e93e06781
i915g: Add missing break statement in i915_debug_packet.
2009-12-08 00:37:35 -08:00
Vinson Lee
7f8e22aa29
rbug: Initialize variable in rbug_get_message.
...
Silences uninitialized variable warning.
2009-12-08 00:28:50 -08:00
Andre Maasikas
369669ff9a
r600: add support for TXB instruction
...
makes testing other things easier - does not hang the card
TODO: enable TEX dependency tracking in vertex programs
2009-12-08 10:02:23 +02:00
Andre Maasikas
dc0777d3e3
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
2009-12-08 09:41:10 +02:00
Vinson Lee
add6dfbba6
llvmpipe: Initialize variables in emit_instruction.
2009-12-07 19:04:07 -08:00
Vinson Lee
3e8b2fda21
progs/test: Initialize variable in prog_parameter.
...
Silences uninitialized variable compiler warning.
2009-12-07 18:40:37 -08:00
Jakob Bornecrantz
5e6fff7ac4
svga: Do the gallium intel configure trick for svga as well
...
Since the drivers we produce on systems where we use
configure depend on none stable kernel API the driver
deliverables should not be built by default in the
mesa 7.7 release.
People wishing to shoot them self in the foot have to
pull the trigger themself, we just hand them the gun.
2009-07-19 09:29:14 +02:00
Ian Romanick
bf75ee9ccc
mesa: set version string to 7.7-rc3
2009-12-16 09:15:09 -08:00
Ian Romanick
006a526edb
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
...
Conflicts:
src/mesa/drivers/dri/unichrome/via_ioctl.c
src/mesa/drivers/dri/unichrome/via_screen.c
src/mesa/main/version.h
src/mesa/state_tracker/st_atom.c
2009-12-16 09:09:51 -08:00
Ian Romanick
42d9409873
mesa: set version string to 7.6.1-rc4
2009-12-16 09:01:58 -08:00
Ian Romanick
11522b74b3
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
...
Conflicts:
src/gallium/drivers/softpipe/sp_quad_blend.c
2009-12-15 12:38:01 -08:00
Ian Romanick
b90f7f3ad3
i965: Use current draw buffer instead of drawable visual to get alpha bits
...
Use the currently bound draw buffer instead of the visual from the
drawable used to create the context. This cause problems generating
mipmaps for an RGBA texture in an RGB context.
This fixes the failure in piglit's glsl-lod-bias test reported in bug #25614 .
2009-12-14 16:30:53 -08:00
Jakob Bornecrantz
f4de0b176d
vmwgfx: Update vmwgfx_drm.h to the on upstream
2009-12-14 22:27:08 +01:00
Jakob Bornecrantz
fb06d8f097
vmware/xorg: Use new stream ioctl
2009-12-14 22:12:20 +01:00
Brian Paul
69346c56a1
mesa/meta: move BindTexture() call in _mesa_meta_GenerateMipmap()
...
This is a follow-up to commit e3fa700c17
.
The call to _mesa_BindTexture() must be before we set any other texture
object state, namely the _mesa_TexParameteri() calls.
This fixes bug 25601 (piglit gen-nonzero-unit failure).
2009-12-14 13:39:21 -07:00
Jakob Bornecrantz
48888b918b
vmware/xorg: Fix failure paths and add some debug printing
2009-12-12 20:02:34 +01:00
Jakob Bornecrantz
49e4b624e5
vmwgfx/core: Check for 3D via the get param ioctl
2009-12-12 18:37:16 +01:00
Maciej Cencora
8413a3aefa
radeon: fix #25463
...
This is just a workaroung until we properly fix texture mapping in radeonSpanRenderStart
2009-12-12 02:02:53 +01:00
Maciej Cencora
f1900323ea
r300: fix depth textures
2009-12-11 23:56:47 +01:00
Brian Paul
e128cc205e
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
2009-12-11 09:51:27 -07:00
Brian Paul
b605f4ff11
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
2009-12-11 09:22:00 -07:00
José Fonseca
da3bc492d2
scons: Tweak MSVC release options.
...
Enable whole program optimizations and fast math.
2009-12-11 15:16:22 +00:00
José Fonseca
ffae1f938d
svga: Add a missing dependency from the prescale state.
...
Thanks for Keith to finding this.
Fixes Jedi Knight 2 menus.
2009-12-11 14:14:03 +00:00
José Fonseca
8469baf41b
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.
2009-12-11 13:15:12 +00:00
José Fonseca
16876b8328
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.
2009-12-11 12:29:02 +00:00
José Fonseca
770323e33e
svga: Fix mixed signed comparisons.
2009-12-11 12:28:53 +00:00
José Fonseca
a2937a2f4e
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).
2009-12-11 12:28:53 +00:00
José Fonseca
8c981b94dc
scons: Make it work with MinGW build of LLVM 2.6.
...
LLVM 2.5 is no longer supported on windows.
2009-12-11 12:28:53 +00:00
Ian Romanick
e624b77eb2
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.
2009-12-10 15:12:31 -08:00
Ian Romanick
b4a6169412
intel: Make RGB textures use XRGB8888
2009-12-10 15:12:30 -08:00
Ian Romanick
cbdeb33209
intel: Make RGB renderbuffers use XRGB8888 like we do for RGB system buffers.
2009-12-10 15:12:30 -08:00
Ian Romanick
eadd9b8e16
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.
2009-12-10 15:12:30 -08:00
Ian Romanick
4f2b2032f4
intel: Use spantmp2 GL_BGR / GL_UNSIGNED_INT_8_8_8_8_REV for XRGB8888
2009-12-10 15:12:30 -08:00
Ian Romanick
ffc1f299e9
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?
2009-12-10 15:12:30 -08:00
Ian Romanick
430876cd3a
intel: name in intel_create_renderbuffer was always 0, remove
2009-12-10 15:12:30 -08:00
Ian Romanick
0f01674a58
intel: Use texformat accessor to get bytes-per-pixel
2009-12-10 15:12:30 -08:00
Ian Romanick
4eee46efcb
intel: softwareBuffer in intel_alloc_renderbuffer_storage was always false, remove
2009-12-10 15:12:30 -08:00
Ian Romanick
3078bd136d
intel: Axe intel_renderbuffer::texformat
...
Since the texformat branch merge, the value of intel_renderbuffer::texformat
is just a copy of gl_renderbuffer::Format.
2009-12-10 15:12:30 -08:00
Eric Anholt
539a14a1dd
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).
2009-12-10 14:47:09 -08:00
Zack Rusin
967e6e2009
st/xorg: fix yv12 plus some cleanups in the upload code
2009-12-10 13:04:26 -05:00
Zack Rusin
690d888416
st/xorg: enable yv12 for xv
2009-12-10 13:04:05 -05:00
Vinson Lee
05b6296092
mesa: Fix SCons build.
...
Commit cd6b8dd9e8
deleted
src/mesa/state_tracker/st_cb_get.c.
2009-12-09 22:35:32 -08:00
Jakob Bornecrantz
5e2a86cb1b
vmware/xorg: Properly detect overlay support
2009-12-09 09:51:05 +01:00
Jakob Bornecrantz
b7cf8a1f93
vmware/core: Update vmwgfx_drm.h
2009-12-09 09:51:04 +01:00
Ian Romanick
e3fa700c17
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 .
2009-12-09 11:05:15 -08:00
Eric Anholt
cd6b8dd9e8
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.
2009-12-09 10:37:36 -08:00
Eric Anholt
dd9eb8774a
i965: Enable the accelerated ReadPixels path on gen4 along with pre-gen4.
...
Passes piglit pbo-read-argb8888, and doesn't otherwise regress quick.tests.
2009-12-08 16:35:05 -08:00
Jakob Bornecrantz
6f1db18f14
vmware/xorg: Also stop ports on close
2009-12-04 16:50:26 +01:00
Jakob Bornecrantz
124f4bc977
vmware/xorg: Stop video ports on leave vt
2009-12-04 16:50:20 +01:00
Jakob Bornecrantz
f2e3fc1814
st/xorg: Add enter/leave vt hooks for winsys
2009-12-04 16:50:16 +01:00
Jakob Bornecrantz
c33520b360
st/xorg: Fix leave enter vt cycle in crtc code
2009-12-04 16:50:12 +01:00
Jakob Bornecrantz
d5b94b49f6
st/xorg: New libkms destroy api
2009-12-04 16:50:08 +01:00
Michel Dänzer
32ccc9b0bb
vmware/xorg: Fix SCons build.
...
Not sure how vmw_screen.c could build at all though...
2009-12-08 11:45:19 +01:00
Michel Dänzer
9e42683fb3
vmware/xorg: Avoid warning about HAVE_STDINT_H being redefined.
2009-12-08 11:43:22 +01:00
Andre Maasikas
0d4a05445c
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
2009-12-08 10:16:14 +02:00