From: Jordan Justen Date: Tue, 14 Jan 2020 02:07:34 +0000 (-0800) Subject: iris: Fix some indentation in iris_init_render_context X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d7381c645903657e25d1c678d5733a64b4b99ec;p=mesa.git iris: Fix some indentation in iris_init_render_context Signed-off-by: Jordan Justen --- diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index b1340e1e3da..f57bcd52353 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -945,39 +945,39 @@ iris_init_render_context(struct iris_batch *batch) #endif #if GEN_GEN == 11 - iris_pack_state(GENX(TCCNTLREG), ®_val, reg) { - reg.L3DataPartialWriteMergingEnable = true; - reg.ColorZPartialWriteMergingEnable = true; - reg.URBPartialWriteMergingEnable = true; - reg.TCDisable = true; - } - iris_emit_lri(batch, TCCNTLREG, reg_val); + iris_pack_state(GENX(TCCNTLREG), ®_val, reg) { + reg.L3DataPartialWriteMergingEnable = true; + reg.ColorZPartialWriteMergingEnable = true; + reg.URBPartialWriteMergingEnable = true; + reg.TCDisable = true; + } + iris_emit_lri(batch, TCCNTLREG, reg_val); - iris_pack_state(GENX(SAMPLER_MODE), ®_val, reg) { - reg.HeaderlessMessageforPreemptableContexts = 1; - reg.HeaderlessMessageforPreemptableContextsMask = 1; - } - iris_emit_lri(batch, SAMPLER_MODE, reg_val); + iris_pack_state(GENX(SAMPLER_MODE), ®_val, reg) { + reg.HeaderlessMessageforPreemptableContexts = 1; + reg.HeaderlessMessageforPreemptableContextsMask = 1; + } + iris_emit_lri(batch, SAMPLER_MODE, reg_val); - /* Bit 1 must be set in HALF_SLICE_CHICKEN7. */ - iris_pack_state(GENX(HALF_SLICE_CHICKEN7), ®_val, reg) { - reg.EnabledTexelOffsetPrecisionFix = 1; - reg.EnabledTexelOffsetPrecisionFixMask = 1; - } - iris_emit_lri(batch, HALF_SLICE_CHICKEN7, reg_val); + /* Bit 1 must be set in HALF_SLICE_CHICKEN7. */ + iris_pack_state(GENX(HALF_SLICE_CHICKEN7), ®_val, reg) { + reg.EnabledTexelOffsetPrecisionFix = 1; + reg.EnabledTexelOffsetPrecisionFixMask = 1; + } + iris_emit_lri(batch, HALF_SLICE_CHICKEN7, reg_val); - /* Hardware specification recommends disabling repacking for the - * compatibility with decompression mechanism in display controller. - */ - if (devinfo->disable_ccs_repack) { - iris_pack_state(GENX(CACHE_MODE_0), ®_val, reg) { - reg.DisableRepackingforCompression = true; - reg.DisableRepackingforCompressionMask = true; - } - iris_emit_lri(batch, CACHE_MODE_0, reg_val); + /* Hardware specification recommends disabling repacking for the + * compatibility with decompression mechanism in display controller. + */ + if (devinfo->disable_ccs_repack) { + iris_pack_state(GENX(CACHE_MODE_0), ®_val, reg) { + reg.DisableRepackingforCompression = true; + reg.DisableRepackingforCompressionMask = true; } + iris_emit_lri(batch, CACHE_MODE_0, reg_val); + } - iris_upload_slice_hashing_state(batch); + iris_upload_slice_hashing_state(batch); #endif /* 3DSTATE_DRAWING_RECTANGLE is non-pipelined, so we want to avoid