st/dri: cleanup dri extension handling
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 12 Feb 2014 19:19:17 +0000 (19:19 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 28 Apr 2014 18:11:28 +0000 (19:11 +0100)
commit98e2a8e2f98dd78de682d92f100598191617ac89
tree5b70c9d362ec1e8738dd17c476766f761b4c5215
parent748b35a69f4b4653ebe1e685ec4fae123d78c68a
st/dri: cleanup dri extension handling

Explicitly set the version that is implemented, as that may differ
from the one defined in dri_interface.h. Use designated initialisers
and constify whereever possible.

Note: __DRIimageExtension should not be made const as it's modified
at runtime. This patch should have no side effects on compilers that
do not support designated initialisers, as the existing code in
dri/common already uses them.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/gallium/state_trackers/dri/common/dri_drawable.c
src/gallium/state_trackers/dri/drm/dri2.c