[PATCH i-g-t 03/14] lib/igt_draw: Support 64bpp int the mmap/pwrite paths
Ville Syrjala
ville.syrjala at linux.intel.com
Fri Oct 4 10:41:10 UTC 2024
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
Handle 64bpp pixels formats correcly in the mmap/pwrite
methods.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
lib/igt_draw.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/igt_draw.c b/lib/igt_draw.c
index 917cc37a2175..54c46fe6360c 100644
--- a/lib/igt_draw.c
+++ b/lib/igt_draw.c
@@ -371,6 +371,9 @@ static void set_pixel(void *_ptr, int index, uint64_t color, int bpp)
} else if (bpp == 32) {
uint32_t *ptr = _ptr;
ptr[index] = color;
+ } else if (bpp == 64) {
+ uint64_t *ptr = _ptr;
+ ptr[index] = color;
} else {
igt_assert_f(false, "bpp: %d\n", bpp);
}
--
2.45.2
More information about the igt-dev
mailing list