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