@@ -1049,13 +1049,13 @@ static u32 intel_adjust_aligned_offset(int *x, int *y,
1049
1049
* the x/y offsets.
1050
1050
*/
1051
1051
u32 intel_plane_adjust_aligned_offset (int * x , int * y ,
1052
- const struct intel_plane_state * state ,
1052
+ const struct intel_plane_state * plane_state ,
1053
1053
int color_plane ,
1054
1054
u32 old_offset , u32 new_offset )
1055
1055
{
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 ,
1059
1059
old_offset , new_offset );
1060
1060
}
1061
1061
@@ -1129,14 +1129,14 @@ static u32 intel_compute_aligned_offset(struct intel_display *display,
1129
1129
}
1130
1130
1131
1131
u32 intel_plane_compute_aligned_offset (int * x , int * y ,
1132
- const struct intel_plane_state * state ,
1132
+ const struct intel_plane_state * plane_state ,
1133
1133
int color_plane )
1134
1134
{
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 ;
1140
1140
unsigned int alignment = plane -> min_alignment (plane , fb , color_plane );
1141
1141
1142
1142
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
1945
1945
* with gen2/3, and 90/270 degree rotations isn't supported on any of them.
1946
1946
*/
1947
1947
u32 intel_fb_xy_to_linear (int x , int y ,
1948
- const struct intel_plane_state * state ,
1948
+ const struct intel_plane_state * plane_state ,
1949
1949
int color_plane )
1950
1950
{
1951
- const struct drm_framebuffer * fb = state -> hw .fb ;
1951
+ const struct drm_framebuffer * fb = plane_state -> hw .fb ;
1952
1952
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 ;
1954
1954
1955
1955
return y * pitch + x * cpp ;
1956
1956
}
@@ -1961,12 +1961,12 @@ u32 intel_fb_xy_to_linear(int x, int y,
1961
1961
* specify the start of scanout from the beginning of the gtt mapping.
1962
1962
*/
1963
1963
void intel_add_fb_offsets (int * x , int * y ,
1964
- const struct intel_plane_state * state ,
1964
+ const struct intel_plane_state * plane_state ,
1965
1965
int color_plane )
1966
1966
1967
1967
{
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 ;
1970
1970
}
1971
1971
1972
1972
static
0 commit comments