@@ -39,11 +39,11 @@ int gen8_emit_flush_rcs(struct i915_request *rq, u32 mode)
3939 * On GEN9: before VF_CACHE_INVALIDATE we need to emit a NULL
4040 * pipe control.
4141 */
42- if (GRAPHICS_VER (rq -> engine -> i915 ) == 9 )
42+ if (GRAPHICS_VER (rq -> i915 ) == 9 )
4343 vf_flush_wa = true;
4444
4545 /* WaForGAMHang:kbl */
46- if (IS_KBL_GRAPHICS_STEP (rq -> engine -> i915 , 0 , STEP_C0 ))
46+ if (IS_KBL_GRAPHICS_STEP (rq -> i915 , 0 , STEP_C0 ))
4747 dc_flush_wa = true;
4848 }
4949
@@ -180,8 +180,8 @@ u32 *gen12_emit_aux_table_inv(struct intel_gt *gt, u32 *cs, const i915_reg_t inv
180180static int mtl_dummy_pipe_control (struct i915_request * rq )
181181{
182182 /* Wa_14016712196 */
183- if (IS_MTL_GRAPHICS_STEP (rq -> engine -> i915 , M , STEP_A0 , STEP_B0 ) ||
184- IS_MTL_GRAPHICS_STEP (rq -> engine -> i915 , P , STEP_A0 , STEP_B0 )) {
183+ if (IS_MTL_GRAPHICS_STEP (rq -> i915 , M , STEP_A0 , STEP_B0 ) ||
184+ IS_MTL_GRAPHICS_STEP (rq -> i915 , P , STEP_A0 , STEP_B0 )) {
185185 u32 * cs ;
186186
187187 /* dummy PIPE_CONTROL + depth flush */
@@ -267,7 +267,7 @@ int gen12_emit_flush_rcs(struct i915_request *rq, u32 mode)
267267 else if (engine -> class == COMPUTE_CLASS )
268268 flags &= ~PIPE_CONTROL_3D_ENGINE_FLAGS ;
269269
270- if (!HAS_FLAT_CCS (rq -> engine -> i915 ))
270+ if (!HAS_FLAT_CCS (rq -> i915 ))
271271 count = 8 + 4 ;
272272 else
273273 count = 8 ;
@@ -285,7 +285,7 @@ int gen12_emit_flush_rcs(struct i915_request *rq, u32 mode)
285285
286286 cs = gen8_emit_pipe_control (cs , flags , LRC_PPHWSP_SCRATCH_ADDR );
287287
288- if (!HAS_FLAT_CCS (rq -> engine -> i915 )) {
288+ if (!HAS_FLAT_CCS (rq -> i915 )) {
289289 /* hsdes: 1809175790 */
290290 cs = gen12_emit_aux_table_inv (rq -> engine -> gt ,
291291 cs , GEN12_GFX_CCS_AUX_NV );
@@ -307,7 +307,7 @@ int gen12_emit_flush_xcs(struct i915_request *rq, u32 mode)
307307 if (mode & EMIT_INVALIDATE ) {
308308 cmd += 2 ;
309309
310- if (!HAS_FLAT_CCS (rq -> engine -> i915 ) &&
310+ if (!HAS_FLAT_CCS (rq -> i915 ) &&
311311 (rq -> engine -> class == VIDEO_DECODE_CLASS ||
312312 rq -> engine -> class == VIDEO_ENHANCEMENT_CLASS )) {
313313 aux_inv = rq -> engine -> mask &
@@ -754,7 +754,7 @@ u32 *gen12_emit_fini_breadcrumb_xcs(struct i915_request *rq, u32 *cs)
754754
755755u32 * gen12_emit_fini_breadcrumb_rcs (struct i915_request * rq , u32 * cs )
756756{
757- struct drm_i915_private * i915 = rq -> engine -> i915 ;
757+ struct drm_i915_private * i915 = rq -> i915 ;
758758 u32 flags = (PIPE_CONTROL_CS_STALL |
759759 PIPE_CONTROL_TLB_INVALIDATE |
760760 PIPE_CONTROL_TILE_CACHE_FLUSH |
@@ -775,7 +775,7 @@ u32 *gen12_emit_fini_breadcrumb_rcs(struct i915_request *rq, u32 *cs)
775775 /* Wa_1409600907 */
776776 flags |= PIPE_CONTROL_DEPTH_STALL ;
777777
778- if (!HAS_3D_PIPELINE (rq -> engine -> i915 ))
778+ if (!HAS_3D_PIPELINE (rq -> i915 ))
779779 flags &= ~PIPE_CONTROL_3D_ARCH_FLAGS ;
780780 else if (rq -> engine -> class == COMPUTE_CLASS )
781781 flags &= ~PIPE_CONTROL_3D_ENGINE_FLAGS ;
0 commit comments