@@ -1227,7 +1227,7 @@ static void i9xx_load_lut_8(struct intel_crtc *crtc,
1227
1227
lut = blob -> data ;
1228
1228
1229
1229
for (i = 0 ; i < 256 ; i ++ )
1230
- intel_de_write_fw (dev_priv , PALETTE (pipe , i ),
1230
+ intel_de_write_fw (dev_priv , PALETTE (dev_priv , pipe , i ),
1231
1231
i9xx_lut_8 (& lut [i ]));
1232
1232
}
1233
1233
@@ -1240,9 +1240,11 @@ static void i9xx_load_lut_10(struct intel_crtc *crtc,
1240
1240
enum pipe pipe = crtc -> pipe ;
1241
1241
1242
1242
for (i = 0 ; i < lut_size - 1 ; i ++ ) {
1243
- intel_de_write_fw (dev_priv , PALETTE (pipe , 2 * i + 0 ),
1243
+ intel_de_write_fw (dev_priv ,
1244
+ PALETTE (dev_priv , pipe , 2 * i + 0 ),
1244
1245
i9xx_lut_10_ldw (& lut [i ]));
1245
- intel_de_write_fw (dev_priv , PALETTE (pipe , 2 * i + 1 ),
1246
+ intel_de_write_fw (dev_priv ,
1247
+ PALETTE (dev_priv , pipe , 2 * i + 1 ),
1246
1248
i9xx_lut_10_udw (& lut [i ]));
1247
1249
}
1248
1250
}
@@ -1274,9 +1276,11 @@ static void i965_load_lut_10p6(struct intel_crtc *crtc,
1274
1276
enum pipe pipe = crtc -> pipe ;
1275
1277
1276
1278
for (i = 0 ; i < lut_size - 1 ; i ++ ) {
1277
- intel_de_write_fw (dev_priv , PALETTE (pipe , 2 * i + 0 ),
1279
+ intel_de_write_fw (dev_priv ,
1280
+ PALETTE (dev_priv , pipe , 2 * i + 0 ),
1278
1281
i965_lut_10p6_ldw (& lut [i ]));
1279
- intel_de_write_fw (dev_priv , PALETTE (pipe , 2 * i + 1 ),
1282
+ intel_de_write_fw (dev_priv ,
1283
+ PALETTE (dev_priv , pipe , 2 * i + 1 ),
1280
1284
i965_lut_10p6_udw (& lut [i ]));
1281
1285
}
1282
1286
@@ -3150,7 +3154,8 @@ static struct drm_property_blob *i9xx_read_lut_8(struct intel_crtc *crtc)
3150
3154
lut = blob -> data ;
3151
3155
3152
3156
for (i = 0 ; i < LEGACY_LUT_LENGTH ; i ++ ) {
3153
- u32 val = intel_de_read_fw (dev_priv , PALETTE (pipe , i ));
3157
+ u32 val = intel_de_read_fw (dev_priv ,
3158
+ PALETTE (dev_priv , pipe , i ));
3154
3159
3155
3160
i9xx_lut_8_pack (& lut [i ], val );
3156
3161
}
@@ -3176,8 +3181,10 @@ static struct drm_property_blob *i9xx_read_lut_10(struct intel_crtc *crtc)
3176
3181
lut = blob -> data ;
3177
3182
3178
3183
for (i = 0 ; i < lut_size - 1 ; i ++ ) {
3179
- ldw = intel_de_read_fw (dev_priv , PALETTE (pipe , 2 * i + 0 ));
3180
- udw = intel_de_read_fw (dev_priv , PALETTE (pipe , 2 * i + 1 ));
3184
+ ldw = intel_de_read_fw (dev_priv ,
3185
+ PALETTE (dev_priv , pipe , 2 * i + 0 ));
3186
+ udw = intel_de_read_fw (dev_priv ,
3187
+ PALETTE (dev_priv , pipe , 2 * i + 1 ));
3181
3188
3182
3189
i9xx_lut_10_pack (& lut [i ], ldw , udw );
3183
3190
}
@@ -3224,8 +3231,10 @@ static struct drm_property_blob *i965_read_lut_10p6(struct intel_crtc *crtc)
3224
3231
lut = blob -> data ;
3225
3232
3226
3233
for (i = 0 ; i < lut_size - 1 ; i ++ ) {
3227
- u32 ldw = intel_de_read_fw (dev_priv , PALETTE (pipe , 2 * i + 0 ));
3228
- u32 udw = intel_de_read_fw (dev_priv , PALETTE (pipe , 2 * i + 1 ));
3234
+ u32 ldw = intel_de_read_fw (dev_priv ,
3235
+ PALETTE (dev_priv , pipe , 2 * i + 0 ));
3236
+ u32 udw = intel_de_read_fw (dev_priv ,
3237
+ PALETTE (dev_priv , pipe , 2 * i + 1 ));
3229
3238
3230
3239
i965_lut_10p6_pack (& lut [i ], ldw , udw );
3231
3240
}
0 commit comments