main/format: skip format conversion if src and dst format are equal
authorKarol Herbst <karolherbst@gmail.com>
Wed, 16 Aug 2017 18:32:42 +0000 (20:32 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Oct 2017 22:06:17 +0000 (15:06 -0700)
commiteab078f1321cbd6b292c88fe1770dc1b24261514
tree348a2895afe8253fa5678fa905a75eb2cc953cf7
parent51e7879544728e22bed74ea46437638856c8eb55
main/format: skip format conversion if src and dst format are equal

Fixes 'KHR-GL45.copy_image.functional' on Nouveau and i965.

v2: (by Kenneth Graunke)
    Rewrite patch according to Jason Ekstrand's review feedback.
    This makes it handle differing strides, which i965 needed.

Signed-off-by: Karol Herbst <karolherbst@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/main/format_utils.c