[Mesa-dev] ksmcube on vmwgfx
Peter Hanzel
hanzelpeter at gmail.com
Mon Mar 27 08:37:42 UTC 2017
Hello.
I have downloaded kmscube from git://anonogit.freedesktop.org/mesa/kmscube.
I have tried it inside VMware with vmwgfx acceleration.
The smooth mode works correctly and I see rotating cube.
But I have also tried textured cube (-M rgba) and this doesn't work in vmwgfx.
it asserts in init_tex_rgba: Assertion 'img' failed.
The I compiled mesa in debug mode
And this is the cause:
svga_texture_from_handle wrong format SVGA3D_R8G8B8A8_UNORM !=
SVGA3D_B8G8R8A8_UNORM.
So I change the code in cube-tex.c
in init_tex_rgba in EGLint attr[]
from:
EGL_LINUX_DRM_FOURCC_EXT, DRM_FORMAT_ABGR8888
to:
EGL_LINUX_DRM_FOURCC_EXT, DRM_FORMAT_ARGB8888
Then I see the rotating cube but texture is all black.
I tested the rgba mode on raspberry pi with Eric Anholt's vc4 driver
and the texture mode works normally and I see texture.
What can be a problem?
Thanks.
More information about the mesa-dev
mailing list