From 44f066b9ffb7749e872c9cc44ab4d6e2973c2372 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Fri, 13 Jul 2012 11:19:24 -0400 Subject: gbm: Add new gbm_bo_import entry point This generalizes and replaces gbm_bo_create_for_egl_image. gbm_bo_import will create a gbm_bo from either an EGLImage or a struct wl_buffer. --- src/mesa/drivers/dri/intel/intel_screen.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index bcd85e93dc4..6daeb059ce2 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -357,7 +357,13 @@ intel_query_image(__DRIimage *image, int attrib, int *value) case __DRI_IMAGE_ATTRIB_FORMAT: *value = image->dri_format; return true; - default: + case __DRI_IMAGE_ATTRIB_WIDTH: + *value = image->region->width; + return true; + case __DRI_IMAGE_ATTRIB_HEIGHT: + *value = image->region->height; + return true; + default: return false; } } -- cgit v1.2.3