[PATCH i-g-t 03/14] lib/igt_draw: Support 64bpp int the mmap/pwrite paths
Kamil Konieczny
kamil.konieczny at linux.intel.com
Tue Oct 22 15:55:24 UTC 2024
Hi Ville,
On 2024-10-04 at 13:41:10 +0300, Ville Syrjala wrote:
> 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>
Reviewed-by: Kamil Konieczny <kamil.konieczny 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