anv: implement WaEnableStateCacheRedirectToCS
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 18 Apr 2019 11:00:19 +0000 (12:00 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 18 Apr 2019 16:43:08 +0000 (17:43 +0100)
commitdb5b372bb9f5a0dfea86618f8f9832f25d9eaf71
tree8654312a556d8effde86ae7037a8bbe08fa172f2
parenteaadb62c9ea98f841d7ffc26c14341abdf84d2d6
anv: implement WaEnableStateCacheRedirectToCS

This 3d performance workaround was initially put in the kernel but the
media driver requires different settings so the register has been
whitelisted in i915 [1] and userspace drivers are left initializing it as
they wish.

[1] : https://patchwork.freedesktop.org/series/59494/

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/intel/vulkan/genX_state.c