meta: Fix reading luminance texture as rgba in _mesa_meta_pbo_GetTexSubImage()
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 12 May 2015 12:46:04 +0000 (05:46 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 24 Jul 2015 17:48:58 +0000 (10:48 -0700)
commitaa40546b2de4cd572af02d31fd5c7d4045505ea2
tree742f636d3db6389567e20747a33d13783f47d799
parentbe405ee334ec758a2609d8780221f4f1a1ed3343
meta: Fix reading luminance texture as rgba in _mesa_meta_pbo_GetTexSubImage()

After recent addition of pbo testing in piglit test getteximage-luminance,
it fails on i965. This patch makes a sub test pass.

This patch adds a clear color operation to meta pbo path, which I think is
better than falling back to software path.

V2: Fix color mask for GL_LUMINANCE_ALPHA

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/common/meta_tex_subimage.c