i965/gen10: Implement Wa3DStateMode
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 12 Sep 2017 23:05:06 +0000 (16:05 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 3 Nov 2017 21:30:34 +0000 (14:30 -0700)
commit898e5555deedad71ecc5c6ce2bb2b05604e2de75
treef864f644f1949c94d4de70a43669ebe38674b1f4
parent6c681b4cc1aab20f280dfce88d77896b64588144
i965/gen10: Implement Wa3DStateMode

This workaround doesn't fix any of the piglit hangs we've seen
on CNL. But it might be fixing something we haven't tested yet.

V2: Remove the bits enabling Float blend optimization. It is
    enabled through CACHE_MODE_SS register.
    Update the comment.
    Move gen10 if block on top of gen9 if block.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_state_upload.c