Mesa (master): dri_util: use the implemented version of __DRIimageDriverExtension

Emil Velikov evelikov at kemper.freedesktop.org
Sun Feb 23 19:15:26 UTC 2014


Module: Mesa
Branch: master
Commit: 15db8c08010c6caab60bea22bf624a80cf8401c4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=15db8c08010c6caab60bea22bf624a80cf8401c4

Author: Emil Velikov <emil.l.velikov at gmail.com>
Date:   Wed Feb 12 18:51:49 2014 +0000

dri_util: use the implemented version of __DRIimageDriverExtension

... over the one provided by the headers.

Currently both versions are identical, but that is not
guaranteed to be the case in the future.

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/drivers/dri/common/dri_util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index 0873927..aed73c7 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -874,7 +874,7 @@ driImageFormatToGLFormat(uint32_t image_format)
 
 /** Image driver interface */
 const __DRIimageDriverExtension driImageDriverExtension = {
-    .base = { __DRI_IMAGE_DRIVER, __DRI_IMAGE_DRIVER_VERSION },
+    .base = { __DRI_IMAGE_DRIVER, 1 },
 
     .createNewScreen2           = driCreateNewScreen2,
     .createNewDrawable          = driCreateNewDrawable,




More information about the mesa-commit mailing list