From: Damien Lespiau Date: Sat, 6 Feb 2010 15:43:01 +0000 (+0100) Subject: intel: Allow L8 PBO blit uploads. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd2378e4b0630e26562f3d742b8b2d9a5d5844b0;p=mesa.git intel: Allow L8 PBO blit uploads. Bug #32810 --- diff --git a/src/mesa/drivers/dri/intel/intel_tex_image.c b/src/mesa/drivers/dri/intel/intel_tex_image.c index 3a9394c4f4a..6402141170d 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: