diff options
author | Kristian Høgsberg <[email protected]> | 2012-07-05 12:13:06 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2012-07-11 15:28:34 -0400 |
commit | 44a2b57f93ab68f873eab543f1ecb9dc7f230a7e (patch) | |
tree | cf7214119b54e9282bcbfbbfeca85caf6ea9fc0f /src | |
parent | c0298348089069716cfc1aee2b25d0857c8be450 (diff) |
intel: Add support for new __DRIimage formats
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_screen.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 2b70aa4ebdd..9f31e87b16d 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -202,6 +202,15 @@ intel_allocate_image(int dri_format, void *loaderPrivate) case __DRI_IMAGE_FORMAT_XBGR8888: image->format = MESA_FORMAT_RGBX8888_REV; break; + case __DRI_IMAGE_FORMAT_R8: + image->format = MESA_FORMAT_R8; + break; + case __DRI_IMAGE_FORMAT_GR88: + image->format = MESA_FORMAT_GR88; + break; + case __DRI_IMAGE_FORMAT_NONE: + image->format = MESA_FORMAT_NONE; + break; default: free(image); return NULL; @@ -274,6 +283,12 @@ intel_create_image_from_renderbuffer(__DRIcontext *context, case MESA_FORMAT_RGBA8888_REV: image->dri_format = __DRI_IMAGE_FORMAT_ABGR8888; break; + case MESA_FORMAT_R8: + image->dri_format = __DRI_IMAGE_FORMAT_R8; + break; + case MESA_FORMAT_RG88: + image->dri_format = __DRI_IMAGE_FORMAT_GR88; + break; } return image; |