summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2017-07-14 15:01:35 -0500
committerTim Rowley <[email protected]>2017-07-14 15:09:22 -0500
commit818209118cdec57afe5046ac31650bbee58177ab (patch)
treebe8f039d06c503d33a8eedcd5bfc7432212640cc /src
parent25d43cd656281920b26d154cc52c66b323b5bb45 (diff)
swr: JitManager runtime determination of architecture
Fixes performance regression from f50aa21456d - was forcing internal code generation to target AVX (no gather, etc). Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/swr/swr_screen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp
index c8ff810e165..e88b4551ae9 100644
--- a/src/gallium/drivers/swr/swr_screen.cpp
+++ b/src/gallium/drivers/swr/swr_screen.cpp
@@ -1140,7 +1140,8 @@ swr_create_screen_internal(struct sw_winsys *winsys)
screen->base.flush_frontbuffer = swr_flush_frontbuffer;
- screen->hJitMgr = JitCreateContext(KNOB_SIMD_WIDTH, KNOB_ARCH_STR, "swr");
+ // Pass in "" for architecture for run-time determination
+ screen->hJitMgr = JitCreateContext(KNOB_SIMD_WIDTH, "", "swr");
swr_fence_init(&screen->base);