Skip to content

Commit b35d63f

Browse files
Damien Lespiaudanvet
authored andcommitted
drm/i915/skl: intel_format_to_fourcc() doesn't work for SKL planes
We will have a skl_ version shortly! Reviewed-By: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent a55ecbe commit b35d63f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/i915/intel_display.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2316,7 +2316,7 @@ unsigned long intel_gen4_compute_page_offset(int *x, int *y,
23162316
}
23172317
}
23182318

2319-
static int intel_format_to_fourcc(int format)
2319+
static int i9xx_format_to_fourcc(int format)
23202320
{
23212321
switch (format) {
23222322
case DISPPLANE_8BPP:
@@ -6569,7 +6569,7 @@ static void i9xx_get_plane_config(struct intel_crtc *crtc,
65696569
plane_config->tiling = I915_TILING_X;
65706570

65716571
pixel_format = val & DISPPLANE_PIXFORMAT_MASK;
6572-
fourcc = intel_format_to_fourcc(pixel_format);
6572+
fourcc = i9xx_format_to_fourcc(pixel_format);
65736573
fb->pixel_format = fourcc;
65746574
fb->bits_per_pixel = drm_format_plane_cpp(fourcc, 0) * 8;
65756575

@@ -7621,7 +7621,7 @@ static void ironlake_get_plane_config(struct intel_crtc *crtc,
76217621
plane_config->tiling = I915_TILING_X;
76227622

76237623
pixel_format = val & DISPPLANE_PIXFORMAT_MASK;
7624-
fourcc = intel_format_to_fourcc(pixel_format);
7624+
fourcc = i9xx_format_to_fourcc(pixel_format);
76257625
fb->pixel_format = fourcc;
76267626
fb->bits_per_pixel = drm_format_plane_cpp(fourcc, 0) * 8;
76277627

0 commit comments

Comments
 (0)