Gert Wollny
a4330b418b
vtest_renderer.c: Fix warnings
...
vtest_renderer.c: In Funktion »vtest_write_fence«:
vtest_renderer.c:42:37: Warnung: unused parameter »cookie« [-Wunused-
parameter]
static void vtest_write_fence(void *cookie, uint32_t fence_id_in)
^~~~~~
vtest_renderer.c: In Funktion »vtest_create_renderer«:
vtest_renderer.c:136:13: Warnung: Vergleich zwischen
vorzeichenbehafteten und vorzeichenlosen Ganzzahlausdrücken [-Wsign-
compare]
if (ret != length) {
^~
vtest_renderer.c: In Funktion »vtest_submit_cmd«:
vtest_renderer.c:243:13: Warnung: Vergleich zwischen
vorzeichenbehafteten und vorzeichenlosen Ganzzahlausdrücken [-Wsign-
compare]
if (ret != length_dw * 4) {
^~
vtest_renderer.c: In Funktion »vtest_transfer_get«:
vtest_renderer.c:270:33: Warnung: unused parameter »length_dw« [-
Wunused-parameter]
int vtest_transfer_get(uint32_t length_dw)
^~~~~~~~~
vtest_renderer.c: In Funktion »vtest_transfer_put«:
vtest_renderer.c:309:33: Warnung: unused parameter »length_dw« [-
Wunused-parameter]
int vtest_transfer_put(uint32_t length_dw)
v2: Use mesa-style UNUSED for unused parameters
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
7 years ago
Marc-André Lureau
42e7a37342
vtest: add VTEST_USE_GLX environment variable
...
Allows to select the glx backend with vtest.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
9 years ago
Dave Airlie
19bc426d27
vtest: make some functions static.
...
These functions are only used here.
Signed-off-by: Dave Airlie <airlied@redhat.com>
9 years ago
Dave Airlie
f8b42ca393
vtest: fix shadowed variable usage.
...
Call the input a different name.
Signed-off-by: Dave Airlie <airlied@redhat.com>
9 years ago
Marc-André Lureau
7026fde02f
vtest: fix potential leak
...
Found that to american fuzzy lop & AddressSanitizer
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
9 years ago
Marc-André Lureau
7febc0023b
vtest: be reasonable about cmd length
...
Avoid overflow, found thanks to AddressSanitizer & american fuzzy lop.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
9 years ago
Marc-André Lureau
ddb49b5931
vtest: ensure name is ending with 0
...
Always nice to have.
Fix found thanks to american fuzzy lop.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
9 years ago
Marc-André Lureau
0f01f30fb2
vtest: fix simple potential leaks
...
Found thanks to llvm scan-build.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
9 years ago
Marc-André Lureau
1edf354bf8
vtest: fix some leaks on error
...
Found thanks to llvm scan-build.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
9 years ago
Marc-André Lureau
1b736c547a
vtest: allow to save/replay tests
...
This is useful to do some quite accurate comparative
benchmarks/profiling, and to run fuzzers, such as american fuzzy lop.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
9 years ago
Marc-André Lureau
602e68705e
vtest: fix vtestname leak
...
Fix leaks found thanks to AddressSanitizer.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
9 years ago
Dave Airlie
66708981de
vtest: fail on renderer init failure.
...
This stops us crashing later due to failing to init.
Signed-off-by: Dave Airlie <airlied@redhat.com>
9 years ago
Marc-André Lureau
7c3927ce08
vtest: use VIRGL_RENDERER_THREAD_SYNC
...
Built-in EGL supports threaded contexts, so enable sync thread.
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
9 years ago
Marc-André Lureau
a603f027aa
vtest: only create fence before it's needed
...
Just as bad as waiting only for the last fence, after all.
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
9 years ago
Marc-André Lureau
47559de28d
vtest: use a poll fd if possible
...
For the same glmark2 "build" test, perf reports about half
instructions.
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
9 years ago
Dave Airlie
3263d939b2
virglrenderer: add some more code liceneses
10 years ago
Dave Airlie
d94bbd440c
vtest: rename server and install it
10 years ago
Dave Airlie
dfce1b852f
build: fix make distcheck
10 years ago
Dave Airlie
e416e18569
renderer: use debug name in some more debug statements
10 years ago
Dave Airlie
962d14f0a7
vtest: expect explicit initialisation with name
...
this gets the cmdline passes to us
10 years ago
Dave Airlie
a49e95abbe
vtest: fix some warnings
10 years ago
Dave Airlie
b5407f6602
vtest: add command line option to stop forking
...
this makes it easier to apitrace this
10 years ago
Dave Airlie
f17d4783c0
vtest: drop more debugging printfs
10 years ago
Dave Airlie
c73a1d3f8f
vtest: ignore SIGCHLD
...
this allows us to ignore the death of the child process
and avoid zombies.
10 years ago
Dave Airlie
54d8c08748
vtest: support forking renderers.
...
this should allow running piglits in parallel
10 years ago
Dave Airlie
0a3ccfcb01
vtest: add support for restarting after read error
...
allows running a few times in a row
10 years ago
Dave Airlie
1e9560f092
vtest: finish transfer, start adding fences
10 years ago
Dave Airlie
020b8307e1
vtest: create renderer earlier
10 years ago
Dave Airlie
f8a2c57692
vtest: hook up cmd submit
10 years ago
Dave Airlie
437c841b7e
vtest: add a bit more code
10 years ago
Marc-André Lureau
0b27e44304
vtest: start adding vtest framework
...
The idea is to have a unix socket and possible shmem protocol
between a renderering server and local gallium sw driver.
This could be used to validate virgl without qemu with piglit.
10 years ago