Mesa (master): osmesa/tests: Extend render test to cover other working cases

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Nov 7 15:58:29 UTC 2019


Module: Mesa
Branch: master
Commit: 0013af540d6d5f8054bcb9633707d94adc1f1680
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0013af540d6d5f8054bcb9633707d94adc1f1680

Author: Dylan Baker <dylan at pnwbakers.com>
Date:   Thu Oct 31 10:03:45 2019 -0700

osmesa/tests: Extend render test to cover other working cases

Only the GL_UNSIGNED_BYTE cases actually work, the rest all fail, but we
should test the working cases to ensure that they continue to work.

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/gallium/targets/osmesa/test-render.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/targets/osmesa/test-render.cpp b/src/gallium/targets/osmesa/test-render.cpp
index 1adffe7bbcd..b31789abcd5 100644
--- a/src/gallium/targets/osmesa/test-render.cpp
+++ b/src/gallium/targets/osmesa/test-render.cpp
@@ -93,7 +93,9 @@ INSTANTIATE_TEST_CASE_P(
    OSMesaRenderTest,
    OSMesaRenderTestFixture,
    testing::Values(
-      Params{ OSMESA_RGBA, GL_UNSIGNED_BYTE }
+      Params{ OSMESA_RGBA, GL_UNSIGNED_BYTE },
+      Params{ OSMESA_BGRA, GL_UNSIGNED_BYTE },
+      Params{ OSMESA_ARGB, GL_UNSIGNED_BYTE }
    ),
    name_params
 );




More information about the mesa-commit mailing list