st/mesa: add support for internalformat query2.

Add code to handle GL_INTERNALFORMAT_PREFERRED.
Add code to deal with GL_RENDERBUFFER being passes into ChooseTextureFormat.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
3 files changed