[Mesa-dev] [PATCH 1/2] intel: properly return the image format on intel_query_image

Ander Conselvan de Oliveira ander.conselvan.de.oliveira at intel.com
Thu Apr 26 06:21:19 PDT 2012


---
 src/mesa/drivers/dri/intel/intel_screen.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
index e823792..ac21e96 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -342,7 +342,8 @@ intel_query_image(__DRIimage *image, int attrib, int *value)
    case __DRI_IMAGE_ATTRIB_NAME:
       return intel_region_flink(image->region, (uint32_t *) value);
    case __DRI_IMAGE_ATTRIB_FORMAT:
-      return image->dri_format;
+      *value = image->dri_format;
+      return true;
    default:
       return false;
    }
-- 
1.7.4.1



More information about the mesa-dev mailing list