summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/target-helpers/wrap_screen.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2010-03-10 10:32:16 +0000
committerKeith Whitwell <[email protected]>2010-03-10 10:37:57 +0000
commit431a2f99bc9d4ab567c1feaac9360c09c1dcdfde (patch)
tree34e9a2421c753610ee5c7c4caac491d0afa0aafe /src/gallium/auxiliary/target-helpers/wrap_screen.h
parent601bfb5951ae303b54b4dd8a50bf0558017bf549 (diff)
target-helpers: helper for injecting common debug layers
Add a helper gallium_wrap_screen() for injecting the commonly used extra layers into a gallium stack. Currently that's just the trace module and identity layer, but there could be more in the future, eg. a validation layer.
Diffstat (limited to 'src/gallium/auxiliary/target-helpers/wrap_screen.h')
-rw-r--r--src/gallium/auxiliary/target-helpers/wrap_screen.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/target-helpers/wrap_screen.h b/src/gallium/auxiliary/target-helpers/wrap_screen.h
new file mode 100644
index 00000000000..7e76beb7c5a
--- /dev/null
+++ b/src/gallium/auxiliary/target-helpers/wrap_screen.h
@@ -0,0 +1,16 @@
+#ifndef WRAP_SCREEN_HELPER_H
+#define WRAP_SCREEN_HELPER_H
+
+#include "pipe/p_compiler.h"
+
+struct pipe_screen;
+
+/* Centralized code to inject common wrapping layers. Other layers
+ * can be introduced by specific targets, but these are the generally
+ * helpful ones we probably want everywhere.
+ */
+struct pipe_screen *
+gallium_wrap_screen( struct pipe_screen *screen );
+
+
+#endif