svga: try blitting with copy region in more cases
authorBrian Paul <brianp@vmware.com>
Tue, 28 Jun 2016 23:13:57 +0000 (17:13 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 30 Jun 2016 20:32:08 +0000 (14:32 -0600)
commit4a54514958789a823054322051dd1c0864df5721
tree68a59b3ad3c76bf0e352f7e11ed0da1efd0def2a
parent92b44efef464c04cb4191356936046b49ff13bd9
svga: try blitting with copy region in more cases

We previously could do blits with util_resource_copy_region() when doing
'loose' format checking.  Also do blits with util_resource_copy_region()
when the blit src/dst formats (not the underlying resources) exactly
match.  Needed for GL_ARB_copy_image.

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