From: Anuj Phogat Date: Fri, 10 Nov 2017 22:22:44 +0000 (-0800) Subject: anv/gen10: Enable float blend optimization X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d8164c4287217c2a3f40f587899bb737811c328;p=mesa.git anv/gen10: Enable float blend optimization Signed-off-by: Anuj Phogat Reviewed-by: Rafael Antognolli --- 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) {