Brian Paul
c9ddd6f810
progs/perf: glGenerateMipmap() test
2009-09-24 19:38:04 -06:00
Keith Whitwell
09a23ac3c1
progs/perf: fix warnings in readpixels test
2009-09-24 16:52:14 +01:00
Keith Whitwell
d93f022936
progs/perf: fix typo in sconscript
2009-09-24 16:50:27 +01:00
Keith Whitwell
6e0b56edf8
progs/perf: accept GL3.x also
2009-09-24 16:43:15 +01:00
Brian Paul
fa0816b17c
progs/perf: added glReadPixels benchmark
2009-09-23 14:05:05 -06:00
Brian Paul
489f8bc86f
progs/perf: also request a stencil buffer
2009-09-23 14:05:05 -06:00
Michal Krol
a0549f6634
progs/perf: Actually bind the newly created vbo.
2009-09-23 20:24:35 +02:00
Keith Whitwell
890679d432
Merge branch 'softpipe-opt'
...
Conflicts:
progs/demos/cubemap.c
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/drivers/softpipe/sp_texture.c
2009-09-23 17:37:28 +01:00
Brian Paul
aae77319c0
progs/perf: set TexSubImage4=FALSE
2009-09-23 08:06:37 -06:00
Brian Paul
d04fa73cec
progs/perf: added glCopyTex[Sub]Image2D test
2009-09-22 15:39:05 -06:00
Brian Paul
da0e4e557b
progs/perf: test glGetTexImage() also
2009-09-22 12:26:12 -06:00
Brian Paul
67d7021ae0
progs/perf: add missing texture enable in fbobind.c
2009-09-22 11:15:11 -06:00
Brian Paul
ed113da12e
progs/perf: added fbobind.c test to test FBO binding speed
2009-09-22 11:15:11 -06:00
Brian Paul
cfb0f2489d
progs/perf: added PerfExtensionSupported() helper
2009-09-22 11:15:11 -06:00
Keith Whitwell
0ec26cce36
teximage: add more tests, image formats
...
Add a test which creates a new texture from scratch before uploading.
Add more image formats.
Don't run all tests on all image formats.
2009-09-22 18:00:11 +01:00
Brian Paul
bae2d58827
progs/perf: add another VBO test for Create/Draw/Destroy pattern
...
Report both MB/sec and draw/sec.
2009-09-22 09:53:35 -06:00
Brian Paul
7e5004b298
progs/perf: simplify the code
2009-09-22 09:43:08 -06:00
Brian Paul
aa80851e16
progs/perf: fix comment
2009-09-22 09:29:27 -06:00
Brian Paul
32979ae15f
progs/perf: updated comments
2009-09-22 07:50:12 -06:00
Keith Whitwell
6a09c9d2d8
progs/perf: make teximage results easier to read, more reproducible
...
Always run the same tests on different drivers, give zero results
where test image is too big for driver.
Add a newline between groups of tests.
2009-09-22 12:35:56 +01:00
Keith Whitwell
89f2799dac
progs/perf: reset row_length after subimage test
...
Also test fewer sizes in teximage generally.
2009-09-22 11:58:09 +01:00
Keith Whitwell
bf014d03fe
progs/perf: clean up swapbuffers test a bit
2009-09-22 11:27:18 +01:00
Keith Whitwell
ac6a5107e2
progs/perf: break up long runs of fullscreen quads
...
Not all drivers cope gracefully with command-buffers with zillions of
fullscreen quads.
2009-09-22 11:21:10 +01:00
Keith Whitwell
a7b2659f02
progs/perf: add first attempt at a swapbuffers rate test
...
This is pretty ugly as the original framework assumed you'd set
a single window size at startup and keep it throughout, but for
swapbuffers you want to test the rate at various window sizes.
With luck a nicer solution can be found, but this at least lays out
a marker.
2009-09-22 11:21:09 +01:00
Brian Paul
9297e6968a
progs/perf: added fill-rate test
...
Many more fill modes could be tested, but this hits the basics including
blending, texturing and shaders.
2009-09-21 12:17:49 -06:00
Brian Paul
05bce08980
progs/perf: added helpers for creating simple textures and shader programs
2009-09-21 11:58:03 -06:00
Brian Paul
83fbee6e0b
progs/perf: offsetof() should be defined in stddef.h, include it
...
If this breaks mingw, feel free to revert this.
2009-09-21 11:09:47 -06: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
Keith Whitwell
2884c31d94
progs/perf: convert some DOS line-endings
...
It seems like some of these files were committed with CRLF initially.
2009-09-17 12:09:16 +01:00
Keith Whitwell
e95a3a23dc
progs/perf: add scons support, get working under mingw
2009-09-17 12:08:04 +01:00
Brian Paul
9abbedad09
progs/perf: initial set of simple performance test programs
...
Initial tests include:
drawoverhead - measure overhead of state changes w.r.t drawing commands
teximage - measure glTexImage2D() and glTexSubImage2D() speed
vbo - measure glBufferData() and glBufferSubData() speed
vertexrate - measure vertex rate for immediate mode, glDrawArrays, VBOs, etc.
2009-09-16 19:33:01 -06:00
Brian Paul
4df2f7af5e
progs/glsl: minor Makefile clean-ups
2009-09-16 19:28:55 -06:00
Brian Paul
0b0fc4072f
progs/demos: use non-default texobj in cubemap.c
2009-09-15 18:17:42 -06:00
Brian Paul
7f86da6c60
progs/demos: create a texture object in lodbias.c
...
Before, we were using the default texture object (name=0). This caused
the intel_generate_mipmap() path to fail since passing texture=0 to
glFramebufferTexture2DEXT() causes us to _unbind_ the texture if present.
2009-09-15 18:17:42 -06:00
Brian Paul
41bbc83951
Merge branch 'mesa_7_6_branch'
2009-09-15 09:47:35 -06:00
Brian Paul
5d526ed21a
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
2009-09-15 09:45:18 -06:00
Brian Paul
799631acb1
progs/vp: print program and error info when program does not compile
2009-09-14 17:48:17 -06:00
Brian Paul
284d3b2d9c
progs/tests: exercise display lists and pixelstore
2009-09-14 12:42:17 -06:00
Keith Whitwell
66a7eedaa2
tgsi: handle some src/dst aliasing in tgsi_sse2.c
...
Src/Dst aliasing (aka SOA dependencies) requires some care to ensure
intermediate results do not overwrite yet-to-be read source registers.
This change ensures that MOV/SWZ handle this correctly, which is poor but
no worse than the current tgsi_exec.c path. Remove the fallback as there
is nothing to be gained correctness-wise between the two implementations now.
Fixing this properly looks like a bit of work in this code, but might be
easily achieved by sending destination writes to temporary storage.
2009-09-13 11:59:24 -07:00
Keith Whitwell
18e5f1cee4
tgsi: implement saturation
...
Fix recent performance regression.
2009-09-12 18:33:46 -07:00
Brian Paul
8947cf6728
progs/tests: added Z invert option
2009-09-08 16:47:30 -06:00
Brian Paul
079ae4c38c
progs/demos: added RGB invert option
2009-09-08 16:45:07 -06:00
Peter Hutterer
bf19638a00
prog/glsl: fix Makefile for samplers_array.
...
The rule added in 488b3c4d1b
does not use the
right INCDIR, breaking the build when GL isn't installed in the default include
paths.
7.5 branch only fix, already fixed in master by rewriting the Makefile
(ceb9459ed5
)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-07 12:37:54 +10:00
Brian Paul
375a6b4c4a
progs/tests: re-enable exit() call
...
See bug 21267.
2009-09-03 16:07:45 -06:00
Dave Airlie
ea26f28c8f
tests/texcmp: glewInit in wrong place
2009-09-03 11:33:53 +10:00
Brian Paul
d9b7d7875b
progs/tests: re-enable exit() call
...
See bug 21267.
2009-09-01 08:53:34 -06:00