summaryrefslogtreecommitdiff
path: root/lib/gpu_cmds.c
diff options
context:
space:
mode:
authorMamta Shukla <mamtashukla555@gmail.com>2019-02-03 20:08:03 +0530
committerPetri Latvala <petri.latvala@intel.com>2019-02-04 15:03:20 +0200
commit7d65ed2f230fd5cd0e2670d26db971cea885c493 (patch)
treec8ae5daabaa3ca10ef00fafa3ccdda84494bbb05 /lib/gpu_cmds.c
parentcb6610f5a91a08b1d7f8ae910875891003c6f67c (diff)
tests/kms_cursor_crc.c: Improve test_cursor_alpha()
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@gmail.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109350
Diffstat (limited to 'lib/gpu_cmds.c')
0 files changed, 0 insertions, 0 deletions