Vinson Lee
6920a355c1
progs/perf: Include local headers before installed headers.
Fixes compilation errors on platforms with older installed GL headers.
16 years ago
Brian Paul
653ae04bea
progs/tests: print usage info upon SPACE/u
16 years ago
Brian Paul
c8de476189
progs/tests: re-indent mipmap_limits.c
16 years ago
Jakob Bornecrantz
bcca927562
progs/rbug: Link to math
16 years ago
Brian Paul
c9ddd6f810
progs/perf: glGenerateMipmap() test
16 years ago
Keith Whitwell
09a23ac3c1
progs/perf: fix warnings in readpixels test
16 years ago
Keith Whitwell
d93f022936
progs/perf: fix typo in sconscript
16 years ago
Keith Whitwell
6e0b56edf8
progs/perf: accept GL3.x also
16 years ago
Brian Paul
fa0816b17c
progs/perf: added glReadPixels benchmark
16 years ago
Brian Paul
489f8bc86f
progs/perf: also request a stencil buffer
16 years ago
Michal Krol
a0549f6634
progs/perf: Actually bind the newly created vbo.
16 years ago
Brian Paul
aae77319c0
progs/perf: set TexSubImage4=FALSE
16 years ago
Brian Paul
d04fa73cec
progs/perf: added glCopyTex[Sub]Image2D test
16 years ago
Brian Paul
da0e4e557b
progs/perf: test glGetTexImage() also
16 years ago
Brian Paul
67d7021ae0
progs/perf: add missing texture enable in fbobind.c
16 years ago
Brian Paul
ed113da12e
progs/perf: added fbobind.c test to test FBO binding speed
16 years ago
Brian Paul
cfb0f2489d
progs/perf: added PerfExtensionSupported() helper
16 years ago
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.
16 years ago
Brian Paul
bae2d58827
progs/perf: add another VBO test for Create/Draw/Destroy pattern
Report both MB/sec and draw/sec.
16 years ago
Brian Paul
7e5004b298
progs/perf: simplify the code
16 years ago
Brian Paul
aa80851e16
progs/perf: fix comment
16 years ago
Brian Paul
32979ae15f
progs/perf: updated comments
16 years ago
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.
16 years ago
Keith Whitwell
89f2799dac
progs/perf: reset row_length after subimage test
Also test fewer sizes in teximage generally.
16 years ago
Keith Whitwell
bf014d03fe
progs/perf: clean up swapbuffers test a bit
16 years ago
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.
16 years ago
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.
16 years ago
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.
16 years ago
Brian Paul
05bce08980
progs/perf: added helpers for creating simple textures and shader programs
16 years ago
Brian Paul
83fbee6e0b
progs/perf: offsetof() should be defined in stddef.h, include it
If this breaks mingw, feel free to revert this.
16 years ago
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.
16 years ago
Keith Whitwell
25a580c841
progs/perf: human-readable drawoverhead output
16 years ago
Keith Whitwell
6ab7c127f7
progs/perf: human-format vertexrate output
16 years ago
Keith Whitwell
ed63bd62d8
progs/perf: add human-readable float formatter
16 years ago
Vinson Lee
d17af7d1e1
progs/glsl: Include local headers before installed headers during compilation.
Fixes compilation errors on platforms with insufficient older installed
GL headers.
16 years ago
Keith Whitwell
2884c31d94
progs/perf: convert some DOS line-endings
It seems like some of these files were committed with CRLF initially.
16 years ago
Keith Whitwell
e95a3a23dc
progs/perf: add scons support, get working under mingw
16 years ago
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.
16 years ago
Brian Paul
4df2f7af5e
progs/glsl: minor Makefile clean-ups
16 years ago
Brian Paul
0b0fc4072f
progs/demos: use non-default texobj in cubemap.c
16 years ago
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.
16 years ago
Brian Paul
799631acb1
progs/vp: print program and error info when program does not compile
16 years ago
Brian Paul
284d3b2d9c
progs/tests: exercise display lists and pixelstore
16 years ago
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.
16 years ago
Keith Whitwell
18e5f1cee4
tgsi: implement saturation
Fix recent performance regression.
16 years ago
Brian Paul
8947cf6728
progs/tests: added Z invert option
16 years ago
Brian Paul
079ae4c38c
progs/demos: added RGB invert option
16 years ago
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>
16 years ago
Brian Paul
375a6b4c4a
progs/tests: re-enable exit() call
See bug 21267.
16 years ago
Dave Airlie
ea26f28c8f
tests/texcmp: glewInit in wrong place
16 years ago