intel: Allow PBO acceleration for GL_RGBA8 MESA_FORMAT_ARGB8888.
authorEric Anholt <eric@anholt.net>
Fri, 5 Feb 2010 08:34:14 +0000 (00:34 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 6 Feb 2010 13:10:07 +0000 (14:10 +0100)
This improves firefox-talos-svg runtimes on cairo-gl by 14%.

src/mesa/drivers/dri/intel/intel_tex_image.c

index a56e085b90fd37fe5133a6ed7db59296750f5b45..3a9394c4f4ae689685697da93673e553143f553b 100644 (file)
@@ -177,6 +177,7 @@ check_pbo_format(GLint internalFormat,
    switch (internalFormat) {
    case 4:
    case GL_RGBA:
+   case GL_RGBA8:
       return (format == GL_BGRA &&
               (type == GL_UNSIGNED_BYTE ||
                type == GL_UNSIGNED_INT_8_8_8_8_REV) &&