[Mesa-dev] [PATCH] swr: JitManager runtime determination of architecture
Cherniak, Bruce
bruce.cherniak at intel.com
Fri Jul 14 20:03:47 UTC 2017
Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>
> On Jul 14, 2017, at 3:01 PM, Tim Rowley <timothy.o.rowley at intel.com> wrote:
>
> Fixes performance regression from f50aa21456d - was forcing internal
> code generation to target AVX (no gather, etc).
> ---
> src/gallium/drivers/swr/swr_screen.cpp | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp
> index c8ff810e16..e88b4551ae 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);
>
> --
> 2.11.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list