Alexandros Frantzis
92e4678479
tests: Add tests for staging transfers
...
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
6 years ago
Gert Wollny
5a472049a3
tests: Make it possible to run the unit tests with EGL_SURFACELESS
...
For some reason it is not possible to create a normal EGL context when
a mesa software renderer is used as a backend, and hence the unit tests
will all fail. Make it possible to force a surfaceless EGL context by
specifying the environment variable
VRENDTEST_USE_EGL_SURFACELESS=1
Reviewed-by: Jakob Bornecrantz <jakob@collabora.com>
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
6 years ago
Gert Wollny
5c8e9583fe
testvirgl.c: Fix warnings
...
testvirgl.c: In function »testvirgl_write_fence«:
testvirgl.c:98:41: warning: unused parameter »cookie« [-Wunused-
parameter]
static void testvirgl_write_fence(void *cookie, uint32_t fence)
^~~~~~
testvirgl.c: In function »get_caps«:
testvirgl.c:272:33: warning: Variable »glsl_level« not used
[-Wunused-variable]
uint32_t max_ver, max_size, glsl_level;
v2: use mesa style UNUSED annotation 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>
6 years ago
Jakob Bornecrantz
b03d30e6d1
tests: Use ge instead of eq when testing version and caps
...
This gets us passing at least for now. Some of these tests
should be upgraded to the new version instead.
Signed-off-by: Jakob Bornecrantz <jakob.bornecrantz@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
7 years ago
Dave Airlie
3cd2caad2b
tests: refactor caps getting code out.
...
This just makes getting caps be common code.
Signed-off-by: Dave Airlie <airlied@redhat.com>
7 years ago
Elie Tournier
8007cc0b12
tests: Check if multisample is available before running tests
...
Signed-off-by: Elie Tournier <elie.tournier@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob.bornecrantz@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
7 years ago
Elie Tournier
a4fbf0d8a5
tests: Check if geometry shaders are available before running tests
...
Signed-off-by: Elie Tournier <elie.tournier@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob.bornecrantz@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
7 years ago
Marc-André Lureau
83faf22c16
tests: reset last fence before using it
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
9 years ago
Dave Airlie
60ee9c4457
tests: allocate cmd buf to correct size
...
the value is in dwords, so calloc the correct size.
10 years ago
Dave Airlie
c6fd7d55ac
tests: add flush callback to test large transfers
10 years ago
Marc-André Lureau
0d033a1380
tests: add testvirgl_create_backed_simple_1d_res
10 years ago
Dave Airlie
fcaeadc4ad
tests: add fence handling
...
This adds a basic fence handling interface.
10 years ago
Dave Airlie
bdb49d5636
tests: modify some test utility functions
...
add w/h version for texture 2d
add backed buffer binding fn.
10 years ago
Dave Airlie
50ccab6f6c
tests: add a simple backed resource creation utility
...
Then hook the cmd stream test into it to use it.
10 years ago
Dave Airlie
94946a6ea6
tests: add framework to create a context with a command buffer.
10 years ago
Dave Airlie
99ae4f7a89
tests: add initial transfer API tests
10 years ago
Dave Airlie
2c32b28002
tests: add simple buffer test
10 years ago
Dave Airlie
4240d2e8f5
tests: add simple 2d resource creation helper
10 years ago
Dave Airlie
f7f37ee24e
tests: add simple ctx init/fini handlers
10 years ago
Dave Airlie
c61fbd03ca
tests: add license headers
10 years ago
Dave Airlie
8e391a0b86
tests: start adding a reuseable test library
...
Initial function is just a simple resource create for a 1D resource
10 years ago