@@ -1049,13 +1049,13 @@ static u32 intel_adjust_aligned_offset(int *x, int *y,
10491049 * the x/y offsets.
10501050 */
10511051u32 intel_plane_adjust_aligned_offset (int * x , int * y ,
1052- const struct intel_plane_state * state ,
1052+ const struct intel_plane_state * plane_state ,
10531053 int color_plane ,
10541054 u32 old_offset , u32 new_offset )
10551055{
1056- return intel_adjust_aligned_offset (x , y , state -> hw .fb , color_plane ,
1057- state -> hw .rotation ,
1058- state -> view .color_plane [color_plane ].mapping_stride ,
1056+ return intel_adjust_aligned_offset (x , y , plane_state -> hw .fb , color_plane ,
1057+ plane_state -> hw .rotation ,
1058+ plane_state -> view .color_plane [color_plane ].mapping_stride ,
10591059 old_offset , new_offset );
10601060}
10611061
@@ -1129,14 +1129,14 @@ static u32 intel_compute_aligned_offset(struct intel_display *display,
11291129}
11301130
11311131u32 intel_plane_compute_aligned_offset (int * x , int * y ,
1132- const struct intel_plane_state * state ,
1132+ const struct intel_plane_state * plane_state ,
11331133 int color_plane )
11341134{
1135- struct intel_display * display = to_intel_display (state );
1136- struct intel_plane * plane = to_intel_plane (state -> uapi .plane );
1137- const struct drm_framebuffer * fb = state -> hw .fb ;
1138- unsigned int rotation = state -> hw .rotation ;
1139- unsigned int pitch = state -> view .color_plane [color_plane ].mapping_stride ;
1135+ struct intel_display * display = to_intel_display (plane_state );
1136+ struct intel_plane * plane = to_intel_plane (plane_state -> uapi .plane );
1137+ const struct drm_framebuffer * fb = plane_state -> hw .fb ;
1138+ unsigned int rotation = plane_state -> hw .rotation ;
1139+ unsigned int pitch = plane_state -> view .color_plane [color_plane ].mapping_stride ;
11401140 unsigned int alignment = plane -> min_alignment (plane , fb , color_plane );
11411141
11421142 return intel_compute_aligned_offset (display , x , y , fb , color_plane ,
@@ -1945,12 +1945,12 @@ void intel_fb_fill_view(const struct intel_framebuffer *fb, unsigned int rotatio
19451945 * with gen2/3, and 90/270 degree rotations isn't supported on any of them.
19461946 */
19471947u32 intel_fb_xy_to_linear (int x , int y ,
1948- const struct intel_plane_state * state ,
1948+ const struct intel_plane_state * plane_state ,
19491949 int color_plane )
19501950{
1951- const struct drm_framebuffer * fb = state -> hw .fb ;
1951+ const struct drm_framebuffer * fb = plane_state -> hw .fb ;
19521952 unsigned int cpp = fb -> format -> cpp [color_plane ];
1953- unsigned int pitch = state -> view .color_plane [color_plane ].mapping_stride ;
1953+ unsigned int pitch = plane_state -> view .color_plane [color_plane ].mapping_stride ;
19541954
19551955 return y * pitch + x * cpp ;
19561956}
@@ -1961,12 +1961,12 @@ u32 intel_fb_xy_to_linear(int x, int y,
19611961 * specify the start of scanout from the beginning of the gtt mapping.
19621962 */
19631963void intel_add_fb_offsets (int * x , int * y ,
1964- const struct intel_plane_state * state ,
1964+ const struct intel_plane_state * plane_state ,
19651965 int color_plane )
19661966
19671967{
1968- * x += state -> view .color_plane [color_plane ].x ;
1969- * y += state -> view .color_plane [color_plane ].y ;
1968+ * x += plane_state -> view .color_plane [color_plane ].x ;
1969+ * y += plane_state -> view .color_plane [color_plane ].y ;
19701970}
19711971
19721972static
0 commit comments