Vinson Lee
97cbf4943a
progs/tests: Fix MSVC build.
...
(cherry picked from commit 50e113e375 )
2009-12-03 15:45:18 -08:00
Roland Scheidegger
9dfbd1be44
vega: fix missing include
2009-12-04 00:42:53 +01:00
Roland Scheidegger
9c6a9363ef
Merge branch 'gallium-noblocks'
...
Conflicts:
src/gallium/state_trackers/xorg/xorg_exa.c
2009-12-04 00:35:14 +01:00
Vinson Lee
a99bf51bc8
progs/tests: Fix MSVC build.
...
(cherry picked from commit 952bf63e2c )
2009-12-03 15:35:10 -08:00
José Fonseca
28474e1225
progs/tests: Use rand() instead of random().
...
Forgot these on previous commit.
(cherry picked from commit 166957abeb )
2009-12-03 15:34:38 -08:00
José Fonseca
bb6e3af939
progs/tests: Use rand() instead of random().
...
More portable. Same implementation on Linux.
(cherry picked from commit 699260b195 )
2009-12-03 15:32:45 -08:00
Vinson Lee
a38776419b
progs/tests: Fix MSVC build.
...
(cherry picked from commit f7455ad7af )
2009-12-03 15:29:01 -08:00
Vinson Lee
791b754687
prog/tests: Fix MSVC build.
...
(cherry picked from commit 60b6c74583 )
2009-12-03 15:24:43 -08:00
Vinson Lee
89e747920f
prog/tests: Fix MSVC build.
...
(cherry picked from commit 96fd13c1a0 )
2009-12-03 15:15:12 -08:00
Vinson Lee
5a25adb646
progs/tests: fix MSVC build.
...
(cherry picked from commit 9c778a90ea )
2009-12-03 15:11:25 -08:00
Vinson Lee
3910e88ebf
prog/tests: Fix MSVC build.
...
(cherry picked from commit ea862ec8ff )
2009-12-03 15:05:44 -08:00
Roland Scheidegger
4153ec547c
gallium: fix remaining users of pipe_reference function
2009-12-03 23:58:30 +01:00
Roland Scheidegger
86c8f70db1
mesa: use _mesa_memcpy for COPY_4FV macro
...
Gets rid of one of the worst strict-aliasing offenders, and actually
produces faster code (at least in some cases, when compiler can use
for instance 64bit moves for memcpy).
(note _mesa_memcpy should get inlined)
2009-12-03 23:26:13 +01:00
José Fonseca
13c647fa0d
gallium: fix ref counting bug in pb_bufmgr
...
This was discovered by the pipe_reference api change.
2009-12-03 23:20:56 +01:00
Roland Scheidegger
35a15f0263
gallium: fix reference counting functions to be strict-aliasing compliant
...
Historically, parts of mesa code are not strict-aliasing safe, hence
-fno-strict-aliasing is needed to compile (this got forgotten for scons
builds for gallium, which indeed not only caused compiler warnings but also
unexplicable crashes in non-debug builds). However, we should try to eliminate
code not complying with strict-aliasing code at least for gallium.
Hence change pipe_reference functions to make them strict-aliasing compliant.
This adds a bit more complexity (especially for derived classes) but is the
right thing to do, and it does in fact fix a segfault.
2009-12-03 23:15:38 +01:00
Maciej Cencora
6c41bb25a2
radeon: workaround an FBO issue
...
Fixes #21501
2009-12-03 20:23:22 +01:00
Maciej Cencora
8cde43eb19
radeon: properly check if image should be placed in the miptree
...
Fixes #25355
2009-12-03 20:23:22 +01:00
Alex Deucher
2b5618fc5b
r200: fix polygon stipple
...
fixes fdo bug 25354
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-12-03 11:20:40 -05:00
Michal Krol
72befaaae5
Remove pf_swizzle_* internal macros.
2009-12-03 12:25:49 +01:00
Michal Krol
018f33a328
gallium: Remove pf_mixed_*().
2009-12-03 12:05:21 +01:00
Michal Krol
9861ad46ab
gallium: Remove pf_rev().
2009-12-03 12:03:57 +01:00
Michal Krol
f5bd93fae2
Move pf_get_component_bits() to u_format auxiliary module.
2009-12-03 11:58:36 +01:00
Michal Krol
cceeab39ea
Move pf_get_bits/size() to u_format auxiliary module.
2009-12-03 11:17:37 +01:00
Michal Krol
6df42d8023
Move pf_get_block() to u_format auxiliary module.
2009-12-03 10:52:47 +01:00
Michal Krol
0bed834be4
Move pf_is_depth_and_stencil() to u_format auxiliary module.
2009-12-03 10:20:49 +01:00
Michal Krol
d28740c298
Move pf_is_depth_stencil() to u_format auxiliary module.
2009-12-03 10:12:47 +01:00
Michal Krol
3400b668e3
Move pf_is_compressed() to u_format auxiliary module.
2009-12-03 09:56:03 +01:00
Michal Krol
3ffe25c917
gallium: Remove unused format functions.
2009-12-03 09:48:18 +01:00
Michal Krol
cdb6849fc1
tgsi/ureg: Fix ureg_emit_src().
2009-12-03 09:13:52 +01:00
Vinson Lee
c3b7f93e02
scons: Add Mac OS to target platform list.
...
(cherry picked from commit 2c307c7750 )
2009-12-02 20:33:32 -08:00
Vinson Lee
235c0c8134
progs/vpglsl: Fix psiz-mul.glsl compilation error on Mac OS.
...
(cherry picked from commit b98db7bf69 )
2009-12-02 20:28:54 -08:00
Vinson Lee
0a107d36c2
progs/glsl: Fix trirast GLSL compilation errors on Mac OS.
...
(cherry picked from commit 4b3ec2acf2 )
2009-12-02 20:20:12 -08:00
Vinson Lee
b094683e7c
progs/glsl: Fix noise GLSL compilation error on Mac OS.
...
(cherry picked from commit 0d31990b47 )
2009-12-02 20:16:51 -08:00
Vinson Lee
592c8522a2
demos/glsl: Add missing break statement to noise test.
...
(cherry picked from commit 7dfea5c072 )
2009-12-02 20:16:41 -08:00
Vinson Lee
8f4d3613da
progs/glsl: Fix multinoise GLSL compilation errors on Mac OS.
...
(cherry picked from commit d4dc2e30da )
2009-12-02 20:06:20 -08:00
Vinson Lee
9ed77d12b1
progs/glsl: Add missing break statement in multinoise.c.
...
(cherry picked from commit 43080e40aa )
2009-12-02 20:06:11 -08:00
Vinson Lee
832593772d
progs/glsl: Fix mandelbrot GLSL compilation error on Mac OS.
...
(cherry picked from commit 04442841fb )
2009-12-02 19:55:48 -08:00
Vinson Lee
2a5cd95e24
progs/glsl: Include local headers before installed headers during compilation.
...
Fixes compilation errors on platforms with insufficient older installed
GL headers.
(cherry picked from commit d17af7d1e1 )
2009-12-02 19:39:25 -08:00
Brian Paul
ccea09cd3a
progs/glsl: minor Makefile clean-ups
...
(cherry picked from commit 4df2f7af5e )
2009-12-02 19:39:11 -08:00
Vinson Lee
67a0628ab2
progs: Ignore Mac OS dSYM directories.
...
(cherry picked from commit a420056750 )
2009-12-02 15:22:34 -08:00
Corbin Simpson
ab7e70fabd
radeong: Clean up some bad code.
2009-12-02 12:58:15 -08:00
Corbin Simpson
f79028bbd4
radeong: Add helper to determine pipe driver.
2009-12-02 12:58:15 -08:00
Corbin Simpson
4395d35c8a
radeong: Do ioctls before selecting pipe driver.
2009-12-02 12:58:15 -08:00
Corbin Simpson
4f77b0103d
r300g, radeong: De-specialize r300_winsys into radeon_winsys.
...
There's like five good reasons for this, I swear.
2009-12-02 12:58:15 -08:00
Corbin Simpson
dad193d516
radeong: Change ioctl order, document it.
2009-12-02 12:58:14 -08:00
Corbin Simpson
08383af4c7
r300g: No vertex textures here.
2009-12-02 12:58:14 -08:00
Brian Paul
debc0b6fa8
cso: check if pipe_context::bind_vertex_sampler_states is non-null
...
Fixes segfaults upon exit when the CSO module is releasing its objects.
2009-12-02 12:24:27 -07:00
Brian Paul
d5e5909f17
Revert "llvmpipe: plug in dummy pipe_context::set_vertex_sampler_textures function"
...
This reverts commit 792888121b .
We're instead returning 0 for the PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS query.
2009-12-02 12:20:15 -07:00
Brian Paul
f42192e783
llvmpipe: return 0 for PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS query
...
The driver (and draw module) don't support vertex shader textures yet.
2009-12-02 12:19:33 -07:00
Brian Paul
792888121b
llvmpipe: plug in dummy pipe_context::set_vertex_sampler_textures function
...
Fixes immediate segfault.
2009-12-02 10:11:05 -07:00