[Glamor] dri3 warnings

davyaxel at free.fr davyaxel at free.fr
Sun Dec 8 03:24:58 PST 2013


On 08/12/2013, Fabio Pedretti wrote :
> Hi, just want to let you know the dri3 patch add a compile warning, search for 
> dri3 in this log:
> http://goo.gl/IswRdT
>
Yes:

../../src/glamor_egl.c:456:9: warning: passing argument 4 of 'glamor_egl->egl_create_image_khr' makes pointer from integer without a cast [enabled by default]

This is because we give a texture number as argument to eglCreateImageKHR.
The definition of this functions says it uses a EGLClientBuffer as argument, which is (void*) usually.

The spec indicates that in this case we must 'cast into the type EGLClientBuffer'.
However for me, explicitly casting to EGLClientBuffer converts the warning into an error ('error: cast to pointer from integer of different size').

Axel Davy


More information about the Glamor mailing list