llvmpipe: don't use 3-component formats, except 32-bit x 3 formats
authorBrian Paul <brianp@vmware.com>
Fri, 3 Jun 2016 21:06:28 +0000 (15:06 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 10 Jun 2016 21:50:04 +0000 (15:50 -0600)
commit2db747cf266f51cfecc020b7aeb8c04bd527ad16
tree76728346b9b0c417055d620538c27efb55ae65d2
parent672e92a1462b72b56a50e6b18f02a723c4b0fcc8
llvmpipe: don't use 3-component formats, except 32-bit x 3 formats

This basically disallows all 8-bit x 3 and 16-bit x 3 formats for
textures and render targets.  Some 3-component formats were already
disallowed before.  This avoids problems with GL_ARB_copy_image.

v2: the previous version of this patch disallowed all 3-component formats

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_screen.c