From: Jason Ekstrand Date: Sun, 5 Jun 2016 03:48:55 +0000 (-0700) Subject: isl/state: Don't force-disable L2 bypass for everything X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d050ffbce950f8ececd12200145eb209819a421e;p=mesa.git isl/state: Don't force-disable L2 bypass for everything We already set the bit in the few cases where it's required by the docs so there's no need to set it all the time. This has no noticable perf impact for Dota 2 on Vulkan with the time demo I have. Reviewed-by: Chad Versace Cc: "12.0" --- diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c index f36c0199ada..89fd69d877f 100644 --- a/src/intel/isl/isl_surface_state.c +++ b/src/intel/isl/isl_surface_state.c @@ -310,10 +310,6 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state, TILEWALK_YMAJOR; #endif -#if GEN_GEN >= 8 - s.SamplerL2BypassModeDisable = true; -#endif - #if GEN_GEN >= 8 s.RenderCacheReadWriteMode = WriteOnlyCache; #else @@ -431,7 +427,6 @@ isl_genX(buffer_fill_state_s)(void *state, #endif #if (GEN_GEN >= 8) - .SamplerL2BypassModeDisable = true, .RenderCacheReadWriteMode = WriteOnlyCache, #else .RenderCacheReadWriteMode = 0,