swr: JitManager runtime determination of architecture
authorTim Rowley <timothy.o.rowley@intel.com>
Fri, 14 Jul 2017 20:01:35 +0000 (15:01 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 14 Jul 2017 20:09:22 +0000 (15:09 -0500)
Fixes performance regression from f50aa21456d - was forcing internal
code generation to target AVX (no gather, etc).

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/swr_screen.cpp

index c8ff810e1654781495ddb725c2fdd0de26812953..e88b4551ae9dfc20677f285d41378b9cc741ca57 100644 (file)
@@ -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);