• Nicholas Kazlauskas's avatar
    tests/kms_plane_alpha_blend: Paint FBs with cairo source operator · 017d8461
    Nicholas Kazlauskas authored
    Cairo defaults to using a blended fill, so when IGT tries to paint on
    top of a framebuffer in these tests with an alpha less than 1.0 the
    previous framebuffer contents will still be present underneath.
    
    On amdgpu this is an issue because the framebuffer is created in
    an unitialized state and can have contents from previous tests
    still within memory.
    
    This patch explicitly sets the cairo filling operator to SOURCE to
    overwrite the contents when performing fills with alpha < 1.0 in
    this test.
    
    It also fixes the creation of the transparent FB. My guess as for why
    this test previously passed on i915 is because the primary FB was
    also black, so the CRC would match even if the black overlay plane
    was partially transparent.
    
    Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Signed-off-by: Nicholas Kazlauskas's avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
    Reviewed-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    017d8461
Name
Last commit
Last update
assembler Loading commit data...
benchmarks Loading commit data...
debugger Loading commit data...
docs Loading commit data...
include/drm-uapi Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
overlay Loading commit data...
runner Loading commit data...
scripts Loading commit data...
tests Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
Dockerfile.debian Loading commit data...
Dockerfile.debian-arm64 Loading commit data...
Dockerfile.debian-armhf Loading commit data...
Dockerfile.fedora Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
TODO.rst Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
meson-cross-arm64.txt Loading commit data...
meson-cross-armhf.txt Loading commit data...
meson.build Loading commit data...
meson.sh Loading commit data...
meson_options.txt Loading commit data...