summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_screen.cpp
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2017-10-10 11:08:29 -0500
committerTim Rowley <[email protected]>2017-10-11 14:35:23 -0500
commite4848053528ee108755652acc9763f904677bfd3 (patch)
tree4dd2099bf98353d494d2ca148dd7802fd77e35c9 /src/gallium/drivers/swr/swr_screen.cpp
parent9cad9cbaf89b50ec9e15a7e0fef35fc2e4270550 (diff)
swr: simd16 shaders work in progress
Start building vertex shaders as simd16. Disabled by default, set USE_SIMD16_SHADERS in knobs.h to experiment. Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_screen.cpp')
-rw-r--r--src/gallium/drivers/swr/swr_screen.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp
index 639b18f930f..46b3a003c63 100644
--- a/src/gallium/drivers/swr/swr_screen.cpp
+++ b/src/gallium/drivers/swr/swr_screen.cpp
@@ -1058,6 +1058,9 @@ swr_destroy_screen(struct pipe_screen *p_screen)
swr_fence_reference(p_screen, &screen->flush_fence, NULL);
JitDestroyContext(screen->hJitMgr);
+#if USE_SIMD16_SHADERS
+ JitDestroyContext(screen->hJitMgr16);
+#endif
if (winsys->destroy)
winsys->destroy(winsys);
@@ -1141,6 +1144,9 @@ swr_create_screen_internal(struct sw_winsys *winsys)
// Pass in "" for architecture for run-time determination
screen->hJitMgr = JitCreateContext(KNOB_SIMD_WIDTH, "", "swr");
+#if USE_SIMD16_SHADERS
+ screen->hJitMgr16 = JitCreateContext(16, "", "swr");
+#endif
swr_fence_init(&screen->base);