History log of /external/autotest/client/cros/graphics/drm.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
557946d18d625f8c14e0a1bf6a23d91b17d70f1d 16-Jun-2017 Joe Kniss <djmk@google.com> Implement python screenshots using GBM library.

... so that untiling is no longer handled in python code.

BUG=chromium:653283, b:38152101
TEST=Ran tests that use screenshot.py or crtcScreenShot()

Change-Id: Idb4d4933015d70c35a404a6ef0cbc3fbb664f65c
Reviewed-on: https://chromium-review.googlesource.com/550737
Commit-Ready: Joe Kniss <djmk@google.com>
Tested-by: Joe Kniss <djmk@google.com>
Reviewed-by: Joe Kniss <djmk@google.com>
/external/autotest/client/cros/graphics/drm.py
c4d29ea43d5700dd9924e81d148384f5d63a09f1 04-Jan-2017 Dominik Behr <dbehr@chromium.org> screenshot.py: add support for multiple drm drivers

and more choices of what screen to take screenshot of.

BUG=none
TEST=cbuildbot -g I43041e262b373ef7c79f29552e4a07651da0926b link-full\
and on Goobuntu, add im = crtcScreenshot("external")\
im.save("text.png") at the end of drm.py and run sudo python drm.py

Change-Id: I43041e262b373ef7c79f29552e4a07651da0926b
Signed-off-by: Dominik Behr <dbehr@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/426001
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
/external/autotest/client/cros/graphics/drm.py
6354cb5c78d71da7a06431ef73306b7579d5b6bb 13-Oct-2016 Haixia Shi <hshi@chromium.org> graphics_utils: unswizzle blocklinear layout for tegra

Apparently the pixel order inside an individual GOB is not linear, so proper
unswizzling is required.

BUG=chromium:655235
TEST=test_that graphics_Sanity, keep and inspect unresized screenshot

Change-Id: Ibaa8603ae7eb8a14334f9ef536813520b785911d
Reviewed-on: https://chromium-review.googlesource.com/397941
Tested-by: Haixia Shi <hshi@chromium.org>
Commit-Queue: Haixia Shi <hshi@chromium.org>
Trybot-Ready: Haixia Shi <hshi@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
/external/autotest/client/cros/graphics/drm.py
d0762edbad798a5203df727ddb9eab2d24fdc860 12-Oct-2016 Haixia Shi <hshi@chromium.org> graphics_utils: add mmap size padding for tegra

On tegra the mmap size need to be padded in both X and Y directions to
align with GOB boundaries.

Also remove the redundant "pixels" variable which is never used.

BUG=chromium:654949
TEST=test_that graphics_Sanity on nyan_big with 1920x1080 panel

Change-Id: I3084d5b8e64465ea57ee3b032feb94fc69ff7421
Reviewed-on: https://chromium-review.googlesource.com/396920
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Tested-by: Haixia Shi <hshi@chromium.org>
Commit-Queue: Haixia Shi <hshi@chromium.org>
Trybot-Ready: Haixia Shi <hshi@chromium.org>
/external/autotest/client/cros/graphics/drm.py
90ec4ae1119d264b25264984659e0b045989cab9 04-Oct-2016 Haixia Shi <hshi@chromium.org> graphics_utils: capture screenshot in blocklinear format for tegra

BUG=650465
TEST=graphics_Sanity passes on nyan_big

Change-Id: I56a2e658b69fbd229b5c08acf6ba0e62cb67ae22
Reviewed-on: https://chromium-review.googlesource.com/392488
Commit-Ready: Haixia Shi <hshi@chromium.org>
Tested-by: Haixia Shi <hshi@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
/external/autotest/client/cros/graphics/drm.py
5f4922c627d9eb895f6fcf35e1e19b090a5894a8 28-Apr-2016 Ilja H. Friedel <ihf@chromium.org> autotest: make screenshot more robust.

Try to wake up screen if we can't find a valid crtc and try once
more.

BUG=chromium:607321
TEST=/usr/local/autotest/bin/screenshot.py /tmp/test.png

Change-Id: I669859bf652a8d178d240cbd20e1ac58d7007bf2
Reviewed-on: https://chromium-review.googlesource.com/341043
Commit-Ready: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Haixia Shi <hshi@chromium.org>
/external/autotest/client/cros/graphics/drm.py
f1c0cabbbf8d33c315d9013b6966ef3d1b72fb2a 29-Mar-2016 Nicolas Boichat <drinkcat@google.com> drm.py: Find a card node that has CRTC resources

GPU card nodes have resources(), but do not contain any CRTC, and
therefore screenshot cannot be taken from these devices.

Make sure at least 1 CRTC is available before selecting a drm
card node.

BUG=chrome-os-partner:51788
TEST=Run display_Resolution.extended on elm

Change-Id: Ie5523a593d6dafa8409c3eefb68d06466a578b9d
Reviewed-on: https://chromium-review.googlesource.com/335676
Commit-Ready: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
/external/autotest/client/cros/graphics/drm.py
c5c4cfb286ad25e89a9ab298c56d8e656b615fd0 04-Jun-2015 Yuli Huang <yuli@chromium.org> Fix test failures for DUTs that don't use card0 for screenshot

Chameleon display tests failed on veyron_jerry because veyron_jerry uses card1
instead of card0 for screenshot. Therefore, we should enumerate /dev/dri/ to
find proper drm devices for screenshot.

BUG=chromium:477510
TEST=run display_ResolutionList test on veyron_jerry

Change-Id: I1c8dc82fffb99092c883e528e43ad9ce1c5d524b
Reviewed-on: https://chromium-review.googlesource.com/275791
Reviewed-by: Hung-ying Tyan <tyanh@chromium.org>
Tested-by: Yuli Huang <yuli@chromium.org>
Commit-Queue: Yuli Huang <yuli@chromium.org>
/external/autotest/client/cros/graphics/drm.py
d2c9f442b031fc47f6196b92bb96ecbbd796c10c 21-May-2015 Ilja H. Friedel <ihf@chromium.org> Find valid crtc for screenshot.

This change completes some of the drm structures and searches
for a valid crtc to take the screenshot from.

BUG=chromium:476791
TEST=Ran on alex.

Change-Id: I84a2c85061c2e2e897051d6cfad3211247518c03
Reviewed-on: https://chromium-review.googlesource.com/272546
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Trybot-Ready: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
/external/autotest/client/cros/graphics/drm.py
d94feb65407b07bd2c17ffd94cfcace57f9d0650 17-Feb-2015 Ilja H. Friedel <ihf@chromium.org> Convert chameleon tests to Freon.

TEST=Ran on X and Freon variant of parrot
test_that --args "chameleon_host=$CHAMELEON_IP" $DUT_IP suite:chameleon_hdmi
BUG=chromium:423527, chromium:451787, chromium:451800
CQ-DEPEND=CL:242131

Change-Id: I9f145c387a22529b369e6017894ae20c5f6f429f
Reviewed-on: https://chromium-review.googlesource.com/250674
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Hung-ying Tyan <tyanh@chromium.org>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/cros/graphics/drm.py
f2a4b9f6e2697ef7f6c82b7f276e9e102b61e62b 20-Jan-2015 Corbin Simpson <simpsoco@chromium.org> bin/screenshot: Enable selection of CRTCs with -c flag.

Defaults to CRTC 0 if none is picked.

BUG=chromium:423527
TEST=Plug two monitors into Link and try to take two screenshots with -c 0 and
TEST=-c 1. Works great.

Change-Id: I6f1b53c63ce3abdb7dfe84ebd56ab085a382d99e
Signed-off-by: Corbin Simpson <simpsoco@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/242131
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/cros/graphics/drm.py
5ff4624633a375231c052b38510f279c9f2bbc28 14-Oct-2014 Corbin Simpson <simpsoco@chromium.org> client/cros/graphics: Introduce DRM-based screenshotting.

Directly take screenshots by mapping the framebuffers without using X11. This
effectively permits Freon-based screenshots during testing.

To test: Try to run something that uses screenshots. ui_SystemTray for
example. The test fails, but the screenshot succeeds.

BUG=chromium:412530
TEST=See above

Change-Id: If9160d3a2781f30be1edd0af5f9ce07ac115bd4a
Signed-off-by: Corbin Simpson <simpsoco@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/222973
Reviewed-by: Ilja Friedel <ihf@chromium.org>
/external/autotest/client/cros/graphics/drm.py