intel: Remove unused __DRIimage::data_type field
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 5 Jul 2012 03:34:31 +0000 (23:34 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 5 Jul 2012 18:22:06 +0000 (14:22 -0400)
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_regions.h
src/mesa/drivers/dri/intel/intel_screen.c

index 2fb30eb48f1b421e32d4587edef61ef52a6fc810..18f8093d13c887a23e89eeffd559109c02217ccb 100644 (file)
@@ -147,7 +147,6 @@ struct __DRIimageRec {
    uint32_t usage;
    uint32_t dri_format;
    GLuint format;
-   GLenum data_type;
    void *data;
 };
 
index 458178fe927a0066db4b69da5060a7859df58f48..1cbd249653f602ef48515f1b6a10fda47720b7a2 100644 (file)
@@ -194,27 +194,22 @@ intel_create_image_from_name(__DRIscreen *screen,
     case __DRI_IMAGE_FORMAT_RGB565:
        image->format = MESA_FORMAT_RGB565;
        image->internal_format = GL_RGB;
-       image->data_type = GL_UNSIGNED_BYTE;
        break;
     case __DRI_IMAGE_FORMAT_XRGB8888:
        image->format = MESA_FORMAT_XRGB8888;
        image->internal_format = GL_RGB;
-       image->data_type = GL_UNSIGNED_BYTE;
        break;
     case __DRI_IMAGE_FORMAT_ARGB8888:
        image->format = MESA_FORMAT_ARGB8888;
        image->internal_format = GL_RGBA;
-       image->data_type = GL_UNSIGNED_BYTE;
        break;
     case __DRI_IMAGE_FORMAT_ABGR8888:
        image->format = MESA_FORMAT_RGBA8888_REV;
        image->internal_format = GL_RGBA;
-       image->data_type = GL_UNSIGNED_BYTE;
        break;
     case __DRI_IMAGE_FORMAT_XBGR8888:
        image->format = MESA_FORMAT_RGBX8888_REV;
        image->internal_format = GL_RGB;
-       image->data_type = GL_UNSIGNED_BYTE;
        break;
     default:
        free(image);
@@ -258,7 +253,6 @@ intel_create_image_from_renderbuffer(__DRIcontext *context,
 
    image->internal_format = rb->InternalFormat;
    image->format = rb->Format;
-   image->data_type = GL_UNSIGNED_BYTE;
    image->data = loaderPrivate;
    intel_region_reference(&image->region, irb->mt->region);
 
@@ -321,27 +315,22 @@ intel_create_image(__DRIscreen *screen,
    case __DRI_IMAGE_FORMAT_RGB565:
       image->format = MESA_FORMAT_RGB565;
       image->internal_format = GL_RGB;
-      image->data_type = GL_UNSIGNED_BYTE;
       break;
    case __DRI_IMAGE_FORMAT_XRGB8888:
       image->format = MESA_FORMAT_XRGB8888;
       image->internal_format = GL_RGB;
-      image->data_type = GL_UNSIGNED_BYTE;
       break;
    case __DRI_IMAGE_FORMAT_ARGB8888:
       image->format = MESA_FORMAT_ARGB8888;
       image->internal_format = GL_RGBA;
-      image->data_type = GL_UNSIGNED_BYTE;
       break;
     case __DRI_IMAGE_FORMAT_ABGR8888:
        image->format = MESA_FORMAT_RGBA8888_REV;
        image->internal_format = GL_RGBA;
-       image->data_type = GL_UNSIGNED_BYTE;
        break;
     case __DRI_IMAGE_FORMAT_XBGR8888:
        image->format = MESA_FORMAT_RGBX8888_REV;
        image->internal_format = GL_RGB;
-       image->data_type = GL_UNSIGNED_BYTE;
        break;
    default:
       free(image);
@@ -401,7 +390,6 @@ intel_dup_image(__DRIimage *orig_image, void *loaderPrivate)
    image->usage           = orig_image->usage;
    image->dri_format      = orig_image->dri_format;
    image->format          = orig_image->format;
-   image->data_type       = orig_image->data_type;
    image->data            = loaderPrivate;
    
    return image;