[PATCH i-g-t 16/37] lib/igt_fb: Require enginecopy for clear color
Ville Syrjala
ville.syrjala at linux.intel.com
Tue Jul 2 23:27:56 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.
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 6c9b4b7f3107..80e3c0a48bda 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -2496,6 +2496,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