[Libva] vaCreateSurfaceGLX now works with psb (IEGD 10.3) + Xorg 1.6.4
Adam Strzelecki
ono at java.pl
Thu Feb 18 07:43:20 PST 2010
AN UPDATE: vaCreateSurfaceGLX works with psb (IEGD 10.3) + Xorg 1.6.4 (on Ubuntu Karmic 9.10 2.6.31-9)
I suspected that GLX_PIXMAP_BIT missing may be due Xorg server v1.4 in Debian Lenny which (seems) only GLX 1.2.
Therefore I've made tests on Ubuntu 9.10 Karmic which ships with Xorg 1.6.4 (compatible with IEGD 10.3) and ./vaapi_h264 --glx --no-vaapi-glx-use-copy WORKS !!!! WOHOO !!!, the test below displays proper texture. So the problem was with GLX 1.3 not supported by the server rather than something missing in the drivers.
Of course there's a problem with VAAPI requiring both GL_ARB_framebuffer_object & GL_EXT_framebuffer_object, which is IMHO wrong and makes vaCreateSurfaceGLX fail.
So please change `check_fbo_extensions` so it is returning TRUE when any of those two extensions is present as below:
static int check_fbo_extensions(VADriverContextP ctx)
{
const char *gl_extensions;
gl_extensions = (const char *)glGetString(GL_EXTENSIONS);
if (check_extension("GL_ARB_framebuffer_object", gl_extensions))
return 1;
if (check_extension("GL_EXT_framebuffer_object", gl_extensions))
return 1;
return 0;
}
And now I know how to compile `iegd_mod` for 2.6.31-19 (Ubuntu) too ;)
Best regards,
--
Adam
More information about the Libva
mailing list