gallium/util: simplify a few things in util_can_blit_via_copy_region()
authorBrian Paul <brianp@vmware.com>
Wed, 8 Jun 2016 20:41:48 +0000 (14:41 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 30 Jun 2016 20:32:06 +0000 (14:32 -0600)
commita029d9f074c510d86c487b249f4ca535e8782df7
tree6584cdedebc686b4acdd95a4f03301c50104421a
parent5d31ea4b8faf011e855fa056186e1205bf5abcf1
gallium/util: simplify a few things in util_can_blit_via_copy_region()

Since only the src box can have negative dims for flipping, just
comparing the src/dst box sizes is enough to detect flips.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/auxiliary/util/u_surface.c