]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915: Set clear color block size to 0x0
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 18 Sep 2024 14:44:39 +0000 (17:44 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 24 Sep 2024 08:04:49 +0000 (11:04 +0300)
commite25c84e0abbeb164332d1b030323106979ef6593
treec6e3919d5828491565f8c2b724576fbde9065a9b
parent61b105809149978b594ddff0b77bdfd43b1c267a
drm/i915: Set clear color block size to 0x0

We don't use the block size information for the clear color
plane. Technically the entire fb is the single block for the
single 64B clear color surface, so there is just no way to
delcare that as a constant since the fb size can be anything.

Define the clear color block size as 0x0 to make things less
confusing. We already declared that cpp/chars_per_block=0 for
the clear color as well. That also causes the drm core code
to mostly ignore the clear color plane, which is exactly
what we want since that code doesn't know how to deal with
the clear color plane.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240918144445.5716-2-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/display/intel_fb.c