Mesa (master): intel: Allow L8 PBO blit uploads.

Eric Anholt anholt at kemper.freedesktop.org
Sat Feb 6 15:45:12 UTC 2010


Module: Mesa
Branch: master
Commit: fd2378e4b0630e26562f3d742b8b2d9a5d5844b0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd2378e4b0630e26562f3d742b8b2d9a5d5844b0

Author: Damien Lespiau <damien.lespiau at intel.com>
Date:   Sat Feb  6 16:43:01 2010 +0100

intel: Allow L8 PBO blit uploads.

Bug #32810

---

 src/mesa/drivers/dri/intel/intel_tex_image.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_tex_image.c b/src/mesa/drivers/dri/intel/intel_tex_image.c
index 3a9394c..6402141 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_image.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_image.c
@@ -187,6 +187,11 @@ check_pbo_format(GLint internalFormat,
       return (format == GL_RGB &&
               type == GL_UNSIGNED_SHORT_5_6_5 &&
               mesa_format == MESA_FORMAT_RGB565);
+   case 1:
+   case GL_LUMINANCE:
+      return (format == GL_LUMINANCE &&
+	      type == GL_UNSIGNED_BYTE &&
+	      mesa_format == MESA_FORMAT_L8);
    case GL_YCBCR_MESA:
       return (type == GL_UNSIGNED_SHORT_8_8_MESA || type == GL_UNSIGNED_BYTE);
    default:




More information about the mesa-commit mailing list