util: replace format equality test with compatibility test in blit code
authorBrian Paul <brianp@vmware.com>
Tue, 28 Feb 2012 14:48:34 +0000 (07:48 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 29 Feb 2012 15:40:37 +0000 (08:40 -0700)
commit7f9692b97dab498ad47f82394892455d43dcd08b
tree590d34fc9b85cb70c1cc53d1c90bbe2520eeca0d
parentce671c7aceca33a2f29dddfaa555a25218524146
util: replace format equality test with compatibility test in blit code

This lets us use the resource_copy_region() path when blitting from
R8G8B8A8 to R8G8B8x8, for example.

v2: be smarter when src_format==dst_format

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_blit.c