projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8433af
)
intel: Allow L8 PBO blit uploads.
author
Damien Lespiau
<damien.lespiau@intel.com>
Sat, 6 Feb 2010 15:43:01 +0000
(16:43 +0100)
committer
Eric Anholt
<eric@anholt.net>
Sat, 6 Feb 2010 15:43:58 +0000
(16:43 +0100)
Bug #32810
src/mesa/drivers/dri/intel/intel_tex_image.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_tex_image.c
b/src/mesa/drivers/dri/intel/intel_tex_image.c
index 3a9394c4f4ae689685697da93673e553143f553b..6402141170d5d181d73e85989a4dfef37e37f12c 100644
(file)
--- 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: