From 5d8164c4287217c2a3f40f587899bb737811c328 Mon Sep 17 00:00:00 2001 From: Anuj Phogat Date: Fri, 10 Nov 2017 14:22:44 -0800 Subject: [PATCH] anv/gen10: Enable float blend optimization Signed-off-by: Anuj Phogat Reviewed-by: Rafael Antognolli --- src/intel/vulkan/genX_state.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/intel/vulkan/genX_state.c b/src/intel/vulkan/genX_state.c index f56c686ed33..54fb8634fdc 100644 --- a/src/intel/vulkan/genX_state.c +++ b/src/intel/vulkan/genX_state.c @@ -121,6 +121,18 @@ genX(init_device_state)(struct anv_device *device) } #endif +#if GEN_GEN == 10 + uint32_t cache_mode_ss; + anv_pack_struct(&cache_mode_ss, GENX(CACHE_MODE_SS), + .FloatBlendOptimizationEnable = true, + .FloatBlendOptimizationEnableMask = true); + + anv_batch_emit(&batch, GENX(MI_LOAD_REGISTER_IMM), lri) { + lri.RegisterOffset = GENX(CACHE_MODE_SS_num); + lri.DataDWord = cache_mode_ss; + } +#endif + anv_batch_emit(&batch, GENX(3DSTATE_AA_LINE_PARAMETERS), aa); anv_batch_emit(&batch, GENX(3DSTATE_DRAWING_RECTANGLE), rect) { -- 2.30.2