[PATCH i-g-t 12/23] lib/igt_fb: Require enginecopy for clear color
Ville Syrjala
ville.syrjala at linux.intel.com
Mon Sep 2 14:37:47 UTC 2024
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
The blitter code can't currently do clear color (looks like there
is some hardware support for it in the block copy comand, but
not currently implemented). Require the use of enginecopy for
clear color modifiers.
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
lib/igt_fb.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 52910b68a534..776c826c0d55 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -2503,6 +2503,9 @@ static bool block_copy_ok(const struct igt_fb *fb)
static bool ccs_needs_enginecopy(const struct igt_fb *fb)
{
+ if (is_gen12_rc_ccs_cc_modifier(fb->modifier))
+ return true;
+
if (is_gen12_mc_ccs_modifier(fb->modifier))
return true;
--
2.44.2
More information about the igt-dev
mailing list