Dave Airlie
c6da60278c
tests: fix typo,
...
I forgot to git add.
9 years ago
Marc-André Lureau
8a3dcd4c7b
tests: fix fourcc check (on intel at least)
...
- virgl maps VIRGL_FORMAT_B8G8R8X8_UNORM to GL_RGBA8
- _mesa_choose_tex_format() maps GL_RGBA8 to
MESA_FORMAT_R8G8B8A8_UNORM or MESA_FORMAT_A8B8G8R8_UNORM or
MESA_FORMAT_B8G8R8A8_UNORM.
- it ends up in (gl_texture_image *)img->TexFormat
- then in intel (_DRIImage *) image->format.
- on create image, image->dri_format = driGLFormatToImageFormat() (to
ex: MESA_FORMAT_R8G8B8A8_UNORM -> __DRI_IMAGE_FORMAT_ABGR8888)
- on query, intel_lookup_fourcc() -> __DRI_IMAGE_FOURCC_ABGR8888 == GBM_FORMAT_ABGR8888.
For some reason, driGLFormatToImageFormat() doesn't map
MESA_FORMAT_A8B8G8R8_UNORM, so I only check the two possible values I
could find.
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
9 years ago
Dave Airlie
5783d84b30
egl: overhaul the fourcc retrieval function
...
We really need a new mesa interface that works properly for all this.
10 years ago
Dave Airlie
fe4d670752
tests: reorg init tests into one with a standard init sequence
10 years ago
Dave Airlie
7104e97418
tests: start adding iov attach/detach tests
10 years ago
Dave Airlie
eedc194402
tests: test trying to recreate ctx 0, and destroy context no created
10 years ago
Dave Airlie
f4954eb617
tests: test for NULL caps return
10 years ago
Dave Airlie
159dafe1a1
tests: add some tests for illegal attach/detach
10 years ago
Dave Airlie
0e19ae8014
tests: test trying to detach a resource we never attached.
...
Just makes sure we don't corrupt memory of do anything dumb
10 years ago
Dave Airlie
e4e889dfa5
tests: add get_resource_info tests
10 years ago
Dave Airlie
259fd7ea04
tests: add capability retrival tests
10 years ago
Dave Airlie
c61fbd03ca
tests: add license headers
10 years ago
Dave Airlie
4e69e3f8ac
tests: update ctx reset test
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
Dave Airlie
d44ec6aba8
tests: add a test to call the reset hooks.
...
This tests the reset interface.
10 years ago
Dave Airlie
d081aba9bf
tests: add test to leak context and make sure it gets destroyed
10 years ago
Dave Airlie
ff4d88ae5c
tests: test dangling resources.
...
If we leave a resource in the resource table it shouldn't cause
a memory leak.
10 years ago
Dave Airlie
4920fc6d1d
tests: create and bind a resource to a context
...
cleanup properly and make sure no leaks.
10 years ago
Dave Airlie
4de668a972
tests: add simple test case to init a context and tear it down
...
This just checks we don't leak memory on context init/teardown.
10 years ago
Dave Airlie
f38615b5e3
tests: call cleanup interface
...
This calls the cleanup interface.
10 years ago
Dave Airlie
ea204d561e
tests: add a basic EGL initialisation test.
10 years ago
Dave Airlie
6d93aeb128
start adding unit test framework
10 years ago