i965: implement WaEnableStateCacheRedirectToCS
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 18 Apr 2019 11:00:08 +0000 (12:00 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 18 Apr 2019 16:43:08 +0000 (17:43 +0100)
commiteaadb62c9ea98f841d7ffc26c14341abdf84d2d6
tree0cd0ca5889ecbff0b95eab27583b50ca1bd16ac5
parentd1be67db39463b48369cb71979ed18662b2c157e
i965: 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/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_state_upload.c