[igt-dev] [PATCH i-g-t, v3, 1/2] tests/kms_cursor_crc.c: Improve test_cursor_alpha()

Petri Latvala petri.latvala at intel.com
Mon Feb 4 13:04:59 UTC 2019


On Sun, Feb 03, 2019 at 08:08:03PM +0530, Mamta Shukla wrote:
> In the kms_cursor_crc, the subtest to check exterme alpha values failed due
> to different CRCs observed in hardware and software rendering. This patch fixes
> CRC mismatch error in cursor-alpha-opaque and cursor-alpha-transparent subtests
> by improving the order in which cursor was rendered in hardware test. Changes
> made in test_cursor_alpha() to ensure cursor rendering in hardware test and
> acquire CRC value:
> - Add drmModeSetCursor() to set cursor image.
> - Remove igt_display_commit() to reduce the chance of getting crc values cleared
>   before it is acquired.
> - Add igt_remove_fb() to remove locally created framebuffer after disabling the
>   cursor plane in HW test
> 
>   Also, aligned this function with test_cursor_size and after these changes
>   got passing results for alpha blending support added in VKMS CRC API.
> 
> Signed-off-by: Mamta Shukla <mamtashukla555 at gmail.com>
> Reviewed-by: Harry Wentland <harry.wentland at amd.com>


Added link to https://bugs.freedesktop.org/show_bug.cgi?id=109350 and
merged the bunch, thanks.


-- 
Petri Latvala


More information about the igt-dev mailing list