intel: Fallback to meta if we're asked to CopyTexImage2D from RGB to RGBA
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 1 Jun 2010 18:33:43 +0000 (14:33 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 1 Jun 2010 18:33:43 +0000 (14:33 -0400)
commitc7c64d97836c71eaf2ee3fc6d384877170b8c844
tree3f9be7d5b2f76b4a72272a9c0578c00990d392b2
parentd12f2bb9c03a9e8a08824c849200f5b23c05914c
intel: Fallback to meta if we're asked to CopyTexImage2D from RGB to RGBA

The pixel transfer rules state that we must set alpha to 1.0 in this case
which we can't easily do with the blitter.  We can do to passes: one that
sets the alpha to 0xff and one that copies the RGB bits or we can just
use the 3D engine.  Neither approach seems worth it for this case.
src/mesa/drivers/dri/intel/intel_tex_copy.c