[Mesa-dev] [PATCH] gallium: create a debug screen wrapper around swrast screens

Ilia Mirkin imirkin at alum.mit.edu
Sun Nov 20 02:42:28 UTC 2016


Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
 src/gallium/auxiliary/target-helpers/inline_sw_helper.h | 3 +++
 src/gallium/auxiliary/target-helpers/sw_helper.h        | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/src/gallium/auxiliary/target-helpers/inline_sw_helper.h b/src/gallium/auxiliary/target-helpers/inline_sw_helper.h
index 5bb77a5..3d9d824 100644
--- a/src/gallium/auxiliary/target-helpers/inline_sw_helper.h
+++ b/src/gallium/auxiliary/target-helpers/inline_sw_helper.h
@@ -55,6 +55,9 @@ sw_screen_create_named(struct sw_winsys *winsys, const char *driver)
       screen = swr_create_screen(winsys);
 #endif
 
+   if (screen)
+      screen = debug_screen_wrap(screen);
+
    return screen;
 }
 
diff --git a/src/gallium/auxiliary/target-helpers/sw_helper.h b/src/gallium/auxiliary/target-helpers/sw_helper.h
index 5e4e9f7..d1945ad 100644
--- a/src/gallium/auxiliary/target-helpers/sw_helper.h
+++ b/src/gallium/auxiliary/target-helpers/sw_helper.h
@@ -57,6 +57,9 @@ sw_screen_create_named(struct sw_winsys *winsys, const char *driver)
       screen = swr_create_screen(winsys);
 #endif
 
+   if (screen)
+      screen = debug_screen_wrap(screen);
+
    return screen;
 }
 
-- 
2.7.3



More information about the mesa-dev mailing list