arb_copy_image-formats: avoid undefined behavior
commit7020c43b68dce3bd401059b149b1f12e75b2936d
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 2 Jan 2024 12:19:10 +0000 (2 13:19 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 17 Jan 2024 11:31:46 +0000 (17 11:31 +0000)
treedf9fcf7780abae4bb72d490a4826e8238f66dcc8
parent9fc64da1bd1b16e252a956d2cdf2f77b8494734e
arb_copy_image-formats: avoid undefined behavior

This test uses piglit_multisample_texture(), which doesn't handle
integer formats correctly without invoking undefined behavior.

So let's skip these problematic tests when doing multisampling. We test
them when doing single-sampling anyway, and fixing
piglit_multisample_texture() seems a bit too involved to be worth the
hassle.

Closes: https://gitlab.freedesktop.org/mesa/piglit/-/issues/97
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/858>
tests/spec/arb_copy_image/formats.c