Ian Romanick
dd24501665
ARB prog parser: Fix parameter array size comparison
...
Array indexes are invalid when >= the maximum, but array sizes are
only in valid when > the maximum. This prevented programs from
declaring a single maximum size array.
See the piglit vp-max-array test.
2009-10-22 19:20:15 -07:00
Brian Paul
1160acbfea
dri/drivers: update driNewRenderbuffer() to take a gl_format
...
Now pass a specific MESA_FORMAT_x token to indicate the renderbuffer's
format. This is better than passing a GLenum and having to guess the
specific format.
I'm unable to test all the drivers, but any issues should be easy to fix.
2009-10-22 19:57:32 -06:00
Brian Paul
cf0e25d4c8
radeon: simplify radeon_create_renderbuffer()
2009-10-22 19:57:06 -06:00
Brian Paul
ab9d1011f5
Merge branch 'mesa_7_6_branch'
2009-10-22 18:38:19 -06:00
Brian Paul
347fb3737b
docs: document 'useprog' debug option
2009-10-22 18:35:13 -06:00
Brian Paul
fdce832437
mesa: fix up vbo comments
2009-10-22 18:35:13 -06:00
Brian Paul
488e67bab2
mesa: added _mesa_dump_texture()
2009-10-22 18:35:12 -06:00
Brian Paul
55058652b8
intel: flush old context before binding new context
...
Per the GLX spec, when changing rendering contexts, the old context
should first be flushed.
2009-10-22 18:33:26 -06:00
Brian Paul
5e6a6a2719
glx: don't destroy context immediately if it's currently bound
...
According to the GLXDestroyContext() man page, the context should not
immediately be destroyed if it's bound to some thread. Wait until it's
unbound to really delete it. The code for doing the later part is
already present in MakeContextCurrent() so no change was needed there.
2009-10-22 18:20:28 -06:00
Brian Paul
4837e01bcd
mesa: code refactoring- new _mesa_finish(), _mesa_flush()
2009-10-22 18:16:10 -06:00
Zack Rusin
fb22e80169
st/xorg: fix the makefile when used with new xextproto
2009-10-22 19:33:04 -04:00
Brian Paul
61a96a2ac7
progs/xdemos: fix command line flag typo
2009-10-22 17:11:59 -06:00
Brian Paul
8810b8f671
i965: fix hacked Fallback usage in brw_prepare_vertices()
...
Setting intel->Fallback = 1 clobbered any fallback state that was already
set. Not sure where this hack originated (the git history is a little
convoluted). Define and use a new BRW_FALLBACK_DRAW bit instead. This
shouldn't break anything and could potentially fix some bugs (but no
specific ones are known).
2009-10-22 16:52:59 -06:00
Brian Paul
c24466c34e
intel: define INTEL_FALLBACK_DRIVER for drivers
2009-10-22 16:52:59 -06:00
Brian Paul
ea659f8917
intel: Fallback field is a bitmask, use GLbitfield
2009-10-22 16:52:59 -06:00
Brian Paul
f9bbbe5803
i965: remove unused brw_context::tmp_fallback field
2009-10-22 16:52:59 -06:00
Brian Paul
2f7abf5c04
i965: remove unused BRW_FALLBACK_TEXTURE bit
...
The value was probably wrong too.
It was the same as INTEL_FALLBACK_DRAW_BUFFER.
2009-10-22 16:52:59 -06:00
Corbin Simpson
04ec113e09
r300g: Enable more stuff in r300_screen, cleanup comments.
...
Also enable 24-bit depth buffers without stencil.
2009-10-22 14:29:48 -07:00
Corbin Simpson
ff9e1c0198
r300g: Cleanup PSC setup math a bit and stop using Draw formats.
2009-10-22 14:29:48 -07:00
Christoph Bumiller
198925caa1
nv50: handle PIPE_TEX_FILTER_ANISO case
...
Set the same bits as for linear filtering (in addition
to max anisotropy), and 2 unknown bits I've seen set.
2009-10-22 23:05:12 +02:00
Patrice Mandin
4b8de9bd7c
nouveau: nv30: rewrite so we can render only in depth buffer
2009-10-22 22:01:53 +02:00
Patrice Mandin
f9a69c0f04
nouveau: nv30: use a8r8g8b8 as depth texture format for z24s8
2009-10-22 22:00:46 +02:00
Corbin Simpson
fd7ee2bcb7
Kill off trident.
...
Hm. I could have said "chew trident and spit it out," or perhaps
"spear trident," instead. Dohoho.
2009-10-22 12:57:13 -07:00
Corbin Simpson
8e4657a9d4
Nuke s3v.
...
As per FDO #17889 .
2009-10-22 12:29:30 -07:00
Corbin Simpson
06e464c2d5
r300g: Clean up duplicate code in r300_render.
2009-10-22 11:50:51 -07:00
Corbin Simpson
1f7f9bab81
r300g: Move render functions to r300_render.
...
Part of the fastpath cleanup.
2009-10-22 11:50:51 -07:00
Alex Deucher
dd36006a4e
r600: fix depth span macros for format changes
2009-10-22 14:48:45 -04:00
Brian Paul
eb1b8ed148
radeon: fix some renderbuffer format bugs
2009-10-22 12:26:17 -06:00
José Fonseca
bf48447caf
scons: Hack LLVM support on Windows.
...
Doesn't quite work yet though, as small differences in the compilation flags
used when building LLVM and Mesa cause link failures for STL symbols.
2009-10-22 19:12:14 +01:00
José Fonseca
719984afca
llvmpipe: Avoid yet another variable size array.
2009-10-22 19:12:14 +01:00
José Fonseca
ba8c11923a
llvmpipe: Define rdtsc for MSVC.
2009-10-22 19:12:14 +01:00
José Fonseca
9aafa1fbd2
llvmpipe: Avoid variable size arrays.
...
Not really variable size, but MSVC still doesn't like them.
2009-10-22 19:12:14 +01:00
José Fonseca
01b85e2923
llvmpipe: Use the pack/unpack functions for 8bit unsigned norm multiplication.
2009-10-22 19:12:13 +01:00
José Fonseca
4458695bda
llvmpipe: Utility function to double the bit width of a type.
2009-10-22 19:12:13 +01:00
José Fonseca
421507de06
llvmpipe: Factor vector packing/unpacking to a separate source file.
...
These functions will be needed to implement many of the 8bit operations,
and they are quite complex on its own.
2009-10-22 19:12:13 +01:00
José Fonseca
a07437f8a6
llvmpipe: Call util_cpu_detect() from the unit tests.
2009-10-22 19:12:13 +01:00
José Fonseca
4797ce0d19
util: Set cpu endianness too.
2009-10-22 19:12:13 +01:00
José Fonseca
1acd891ed3
scons: Disable more MSVC pedantic security warnings.
2009-10-22 19:12:12 +01:00
Alex Deucher
f8bee0e412
Merge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa
2009-10-22 12:29:36 -04:00
Zack Rusin
1f5b568fbe
st/xorg: cleanup the checks for whether the op is accelerated
2009-10-22 12:21:35 -04:00
Alex Deucher
5e77b61e39
Merge branch 'mesa_7_6_branch' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa
2009-10-22 12:02:31 -04:00
Zack Rusin
c4af8ce69e
st/xorg: lots of render fixes
...
fixes all the blend modes, fixes flushing/finishing semantics, adds
acceleration for the component alpha modes that we can support, fixes
src in mask shader and general cleanups
2009-10-22 11:53:10 -04:00
Chia-I Wu
4e2bdd6635
progs/egl: Add support for pixmap and pbuffer surface to xeglgears.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-22 09:33:27 -06:00
Chia-I Wu
60cf250d47
egl_glx: Add support for eglWaitClient and eglWaitNative.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-22 09:33:27 -06:00
Chia-I Wu
7ffe64a7ae
egl_glx: Clean up eglGetProcAddress.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-22 09:33:27 -06:00
Chia-I Wu
a206436577
egl_glx: Clean up context functions.
...
This lifts the requirement that a context must be direct.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-22 09:33:27 -06:00
Chia-I Wu
c407c70244
egl_glx: Clean up surface functions.
...
Separete Drawable and GLXDrawable. Add support for pbuffer and pixmap
surfaces on GLX <= 1.3. Remove surface binding code that will never
work.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-22 09:33:27 -06:00
Chia-I Wu
78c3a351bc
egl_glx: Clean up the initialization code.
...
Proper detection of GLX extensions. Convert fbconfigs or visuals in a
more unified way and validate the resulting configs.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-22 09:33:27 -06:00
Chia-I Wu
326baecd75
egl: Correct conversion of native visual type.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-22 09:33:27 -06:00
Ben Skeggs
eebf4b5299
nv50: support 3D class 0x8597, remove redundant unknown chipset detection
2009-10-22 21:56:32 +10:00