Well, I believe the OpenGL ES for X11 is still not working in Yocto, though that in the lasted bsp 4.0.0 has worked now. So the samples are likely won't work. If you are in a hurry you can copy from the bsp and plot it to Yocto.