Nicolai Hähnle
496137d8eb
gallium debug: Add gcc printf hint to debug_printf
...
This causes gcc to issue warnings when format parameters do not match up
with the format string in calls to debug_printf.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-21 17:41:54 +02:00
Keith Whitwell
7ce0421fb7
progs/perf: a few more vbo upload modes
...
Some tests, eg small SubData are probably overwhelmed by the cost of
performing the draw after each upload. Add a varient which does a lot
of subdata uploads and then a single draw.
Also try to avoid cache-artifacts in the upload timings.
2009-09-21 15:57:14 +01:00
Keith Whitwell
25a580c841
progs/perf: human-readable drawoverhead output
2009-09-21 15:57:14 +01:00
Keith Whitwell
6ab7c127f7
progs/perf: human-format vertexrate output
2009-09-21 15:57:14 +01:00
Keith Whitwell
ed63bd62d8
progs/perf: add human-readable float formatter
2009-09-21 15:57:13 +01:00
Vinson Lee
d17af7d1e1
progs/glsl: Include local headers before installed headers during compilation.
...
Fixes compilation errors on platforms with insufficient older installed
GL headers.
2009-09-21 08:44:56 -06:00
Brian Paul
5a0b29050f
softpipe: Fix cube face selection.
...
If arx and ary are equal, we still want to choose from one of them,
and not arz.
(cherry picked from commit de685b37a9
)
2009-09-21 08:36:05 -06:00
Brian Paul
077e3de989
swrast: fix cube face selection
...
If arx and ary are equal, we still want to choose from one of them,
and not arz.
This is the same as Michal's softpipe fix.
2009-09-21 08:36:05 -06:00
Andre Maasikas
2d729e6e3b
r600: fix some issues with LIT instruction
...
- MUL_LIT is ALU.Trans instruction
- some Trans instructions can take 3 arguments
- don't clobber dst.x, use dst.z as temp, it'll get written correct
value in last insn
- respect source swizzles
2009-09-21 10:14:25 -04:00
Nicolai Hähnle
3083ba38f4
Merge branch 'mesa_7_6_branch'
2009-09-21 13:08:34 +02:00
Nicolai Hähnle
526430ade1
r300: Zero-initialize register for NV_vertex_program
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-21 12:56:16 +02:00
Nicolai Hähnle
736e1ae42f
r300: Fix handling of NV_vertex_program parameters
...
The handling is a bit inefficient, unfortunately, but I don't want to make
any intrusive changes for Mesa 7.6.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-21 12:56:16 +02:00
Michel Dänzer
c67bb22fe7
Merge branch 'mesa_7_6_branch'
2009-09-21 10:48:32 +02:00
Michel Dänzer
1d4dbd8d9b
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
2009-09-21 10:39:20 +02:00
Michel Dänzer
999592745f
intel: Fix crash in intel_flush().
...
Since commit 2921a2555d
('intel: Deassociated
drawables from private context struct in intelUnbindContext'),
intel->driDrawable may be NULL in intel_flush().
2009-09-21 10:28:37 +02:00
Ben Skeggs
774db70506
nouveau: allow building modesetting_drv.so
2009-09-21 14:51:39 +10:00
Ben Skeggs
344e2fd1f2
nouveau: drm_api create_screen()'s 'arg' argument can be NULL
2009-09-21 14:46:50 +10:00
Brian Paul
e3384a0d53
windows: call _mesa_meta_init/free()
2009-09-20 22:19:28 -06:00
Brian Paul
2c1937480a
xlib: always call _mesa_meta_init/free()
2009-09-20 22:19:06 -06:00
Brian Paul
4a4914e414
dri/swrast: call _mesa_meta_init/free()
2009-09-20 22:13:28 -06:00
Brian Paul
1741bc1a79
osmesa: call _mesa_meta_init/free()
2009-09-20 22:13:09 -06:00
Brian Paul
a1cf9b6abe
Revert "st/mesa: Compile in meta.c."
...
This reverts commit 6c5726cd39
.
2009-09-20 22:08:30 -06:00
Brian Paul
1eda10d073
Revert "scons: add meta.c to sources"
...
This reverts commit 41fefe88c5
.
2009-09-20 22:08:21 -06:00
Brian Paul
da9d8f1924
Revert "mesa: move _mesa_meta_init/free() calls to core Mesa"
...
This reverts commit 651cffd626
.
The commit inadvertantly introduced a new gallium dependency on the meta code.
2009-09-20 22:06:03 -06:00
Brian Paul
41fefe88c5
scons: add meta.c to sources
2009-09-20 21:31:45 -06:00
Chia-I Wu
6c5726cd39
st/mesa: Compile in meta.c.
...
meta was moved to core Mesa since
651cffd626
.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-09-20 21:31:45 -06:00
Chia-I Wu
81bac6e2a8
intel: meta clear has a new name.
...
It was renamed to _mesa_meta_Clear.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-09-20 21:31:45 -06:00
Dave Airlie
e9d6ab72be
xorg/st: fixup builds against later dpms headers.
2009-09-21 13:26:48 +10:00
Pauli Nieminen
284a7af274
radeon: Fix legacy bo not to reuse dma buffers before refcount is 1.
...
This should help detecting possible memory leaks with dma buffers and prevent
possible visual corruption if data would be overwriten too early.
2009-09-20 22:28:52 +03:00
Nicolai Hähnle
7e3b8b0d8f
r300/compiler: Fix trig instructions in R300 fp
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-20 20:43:32 +02:00
Pauli Nieminen
3640e4acde
radeon: Fix typo in variable name.
2009-09-20 21:08:42 +03:00
Pauli Nieminen
5fa9a7a9a9
radeon: Improve WARN_ONCE macro to appear as single statement.
...
Do-while makes macro safe to be used with if and for constructions.
Also remove __LINE__ macro from variable name because scope is local to macro anyway.
2009-09-20 20:15:52 +03:00
José Fonseca
1a9eec84bd
scons: Drop gprof support for profile builds; tweak optimization flags instead.
...
gprof is useful for shared libraries, hence our drivers. Nevertheless
profilers like oprofile can benefit from disabling some relatively
minor optimizations for more accurate / complete results.
2009-09-20 18:09:34 +01:00
José Fonseca
911a7a82cd
llvmpipe: Fix lp_get_cached_tile.
...
Align coordinates to tile boundaries.
2009-09-20 18:09:34 +01:00
José Fonseca
76c2e34b22
llvmpipe: Update tile status on flush.
2009-09-20 18:09:34 +01:00
Nicolai Hähnle
94a3c5979f
radeon: Fix "verts" debugging enable
...
Copy'n'paste apparently prevented the RADEON_VERTS flag from being enabled.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-20 18:45:32 +02:00
Brian Paul
ebf2710b2f
Merge branch 'mesa_7_6_branch'
...
Conflicts:
src/mesa/drivers/dri/intel/intel_clear.c
2009-09-20 10:36:45 -06:00
Nicolai Hähnle
82c2f7756a
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
2009-09-20 16:59:03 +02:00
Nicolai Hähnle
e617dd14ab
mesa/st: Create front renderbuffer on the fly when supplied with a surface
...
Normally, the mesa/st would create a fake front buffer out of a
client-allocated surface.
In the DRI setting, however, st/dri provides a front buffer surface which is
created and maintained by the X server. Prefer to use this surface instead,
so that front buffer rendering and reading works correctly.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-20 16:58:53 +02:00
Nicolai Hähnle
c4ce6f6a7c
mesa/st: Initialize format bits of framebuffer renderbuffers
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-20 16:54:40 +02:00
Nicolai Hähnle
c8c5de9e9a
docs: Document new features in radeon/r200/r300 drivers
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-20 16:47:40 +02:00
Nicolai Hähnle
6c323a2473
r300/compiler: Fix R300 fragment program regression introduced by 0723cd1...
...
We obviously need to move the code addr register backwards because their may
be overlap.
This bug affected in particular the Compiz water plugin.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-20 16:34:47 +02:00
Brian Paul
ed4076b5b8
mesa: remove redundant readbuffer check
2009-09-19 17:26:14 -06:00
Brian Paul
4de8e2123e
mesa: rename functions to be more consistant with rest of mesa
2009-09-19 17:06:15 -06:00
Brian Paul
232fc7d333
swrast: remove obsolete s_imaging.c file
2009-09-19 16:43:18 -06:00
Brian Paul
7e0f2ce941
swrast: remove prototypes for obsolete functions
2009-09-19 16:43:17 -06:00
Brian Paul
58e843dda0
mesa: remove s_imaging.c from build
2009-09-19 16:43:17 -06:00
Brian Paul
32e4b6c607
windows: replace old ColorTable, Convolution functions with new
2009-09-19 16:43:17 -06:00
Brian Paul
bc1c8d4af7
mesa: use new meta functions
2009-09-19 16:43:17 -06:00
Brian Paul
3e5a35269b
mesa: meta functions for glCopyColorTable, glCopyConvolutionFilter, etc
2009-09-19 16:43:17 -06:00