ozone/drm: add support for psr2 damage rects [chromium/src : main]

24 views
Skip to first unread message

Femi Adegunloye (Gerrit)

unread,
Jul 24, 2023, 3:56:26 PM7/24/23
to Mark PMNKHME, Gil Dekel, Peter McNeeley, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Brian Ho

Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

Femi Adegunloye would like Mark PMNKHME, Gil Dekel and Peter McNeeley to review this change.

View Change

ozone/drm: add support for psr2 damage rects

Pass along damage rects to optional FB_DAMAGE_CLIPS property,
enabling support for PSR-2 on AMD and Intel.

BUG=b:232858482
TEST=build and deploy to volteer delbin

Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
---
M components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc
M ui/ozone/platform/drm/common/scoped_drm_types.h
M ui/ozone/platform/drm/gpu/drm_gpu_util.cc
M ui/ozone/platform/drm/gpu/drm_gpu_util.h
M ui/ozone/platform/drm/gpu/drm_overlay_plane.cc
M ui/ozone/platform/drm/gpu/drm_overlay_plane.h
M ui/ozone/platform/drm/gpu/drm_overlay_validator.cc
M ui/ozone/platform/drm/gpu/hardware_display_plane.cc
M ui/ozone/platform/drm/gpu/hardware_display_plane.h
M ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc
M ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc
11 files changed, 68 insertions(+), 7 deletions(-)


To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
Gerrit-Change-Number: 4554495
Gerrit-PatchSet: 9
Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
Gerrit-CC: Brian Ho <h...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Mark PMNKHME <marky...@google.com>
Gerrit-Attention: Gil Dekel <gild...@chromium.org>
Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>

Femi Adegunloye (Gerrit)

unread,
Jul 24, 2023, 3:56:30 PM7/24/23
to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 9
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Mon, 24 Jul 2023 19:56:23 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No

    Gil Dekel (Gerrit)

    unread,
    Jul 24, 2023, 4:40:29 PM7/24/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Mark PMNKHME, Peter McNeeley.

    View Change

    1 comment:

    • File ui/ozone/platform/drm/gpu/hardware_display_plane.h:

      • Patch Set #9, Line 59: ScopedDrmPropertyBlob fb_damage_clips_blob;

        Why is this public? This feels a bit unorthodox.

        Can you have a private member and a set function that can control for input validation and timing (if needed) instead?

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 9
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Mon, 24 Jul 2023 20:40:17 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Peter McNeeley (Gerrit)

    unread,
    Jul 24, 2023, 4:46:39 PM7/24/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Mark PMNKHME.

    View Change

    1 comment:

    • File components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc:

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 9
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Comment-Date: Mon, 24 Jul 2023 20:46:30 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Femi Adegunloye (Gerrit)

    unread,
    Jul 24, 2023, 5:57:26 PM7/24/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

    View Change

    2 comments:

    • File components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc:

      • The screen will go black on new tab with high probability, then eventually get stuck that way.

        I don't remember seeing an actual crash message in the logs though.

    • File ui/ozone/platform/drm/gpu/hardware_display_plane.h:

      • Why is this public? This feels a bit unorthodox. […]

        I moved it to a protected member, and created a setter function. Not sure what input validation would be needed aside from the one already done by drm->CreatePropertyBlob

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 10
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Mon, 24 Jul 2023 21:57:19 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Gil Dekel <gild...@chromium.org>
    Comment-In-Reply-To: Peter McNeeley <peterm...@chromium.org>

    Gil Dekel (Gerrit)

    unread,
    Jul 24, 2023, 6:00:58 PM7/24/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Mark PMNKHME, Peter McNeeley.

    View Change

    1 comment:

    • File ui/ozone/platform/drm/gpu/hardware_display_plane.h:

      • I moved it to a protected member, and created a setter function. […]

        What about the coordinates that are fed into the blob? would it make sense for them to be all 0s? or negative ones? or larger than the overlay's size?

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 10
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Mon, 24 Jul 2023 22:00:48 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Femi Adegunloye <mrf...@google.com>
    Comment-In-Reply-To: Gil Dekel <gild...@chromium.org>

    Femi Adegunloye (Gerrit)

    unread,
    Jul 24, 2023, 6:18:08 PM7/24/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

    View Change

    1 comment:

    • File ui/ozone/platform/drm/gpu/hardware_display_plane.h:

      • What about the coordinates that are fed into the blob? would it make sense for them to be all 0s? or […]

        That's fair, I was thinking of the blob pointer as kind of opaque but I realize now there is a GetPropertyBlob method in drm.

        I'll reupload in a bit with some input checks

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 10
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Mon, 24 Jul 2023 22:18:00 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Gil Dekel <gild...@chromium.org>
    Comment-In-Reply-To: Femi Adegunloye <mrf...@google.com>

    Gil Dekel (Gerrit)

    unread,
    Jul 24, 2023, 6:25:20 PM7/24/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Mark PMNKHME, Peter McNeeley.

    View Change

    1 comment:

    • File ui/ozone/platform/drm/gpu/hardware_display_plane.h:

      • That's fair, I was thinking of the blob pointer as kind of opaque but I realize now there is a GetPr […]

        These are checks that should be added as DCHECKS if you expect never to run into them, or otherwise have LOG(ERRORS) around them when the input is unexpected.

        Also, it implies you need to add unittests around the logic that produces all these damage rects and feed them down to DRM, but I assume you plan to add these in a follow-up CL with this logic.

        Also2, why protected and not private? Especially if you expose a set method? In general, it's better to force clients of the API to use set methods so they go through your validation hoops.

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 10
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Mon, 24 Jul 2023 22:25:13 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Peter McNeeley (Gerrit)

    unread,
    Jul 25, 2023, 11:21:49 AM7/25/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Mark PMNKHME.

    View Change

    1 comment:

    • File ui/ozone/platform/drm/gpu/drm_overlay_validator.cc:

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 10
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Comment-Date: Tue, 25 Jul 2023 15:21:43 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Peter McNeeley (Gerrit)

    unread,
    Jul 25, 2023, 11:53:26 AM7/25/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Mark PMNKHME.

    View Change

    1 comment:

    • File ui/ozone/platform/drm/gpu/drm_overlay_plane.cc:

      • Patch Set #10, Line 34: gfx::Point(),

        I am not sure it is required to do this point/size.
        I think you can construct from a size or or cast to a rect.

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 10
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Comment-Date: Tue, 25 Jul 2023 15:53:14 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Peter McNeeley (Gerrit)

    unread,
    Jul 25, 2023, 4:23:58 PM7/25/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Mark PMNKHME.

    View Change

    1 comment:

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 10
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Comment-Date: Tue, 25 Jul 2023 20:23:49 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Femi Adegunloye (Gerrit)

    unread,
    Jul 25, 2023, 5:16:56 PM7/25/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Mark PMNKHME, Peter McNeeley.

    View Change

    1 comment:

    • File components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc:

      • Patch Set #10, Line 2285:

              for (auto& overlay : overlays_) {
        if (frame->sub_buffer_rect &&
        !frame->sub_buffer_rect->size().IsZero()) {
        overlay.damage_rect = gfx::RectF(*frame->sub_buffer_rect);
        }
        }

      • This code is actually elsewhere with the exception of the primary plane. […]

        hm, maybe not. From the logs it seemed like the damage was only ever 1080p without this code.

        Maybe things have changed? I'll take a closer look and come back with a clearer answer

        I guess my other question is, wouldn't the primary plane still need damage information?

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 10
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Tue, 25 Jul 2023 21:16:48 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Peter McNeeley <peterm...@chromium.org>

    Femi Adegunloye (Gerrit)

    unread,
    Jul 26, 2023, 9:04:07 PM7/26/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

    View Change

    4 comments:

    • File components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc:

      • Patch Set #10, Line 2285:

              for (auto& overlay : overlays_) {
        if (frame->sub_buffer_rect &&
        !frame->sub_buffer_rect->size().IsZero()) {
        overlay.damage_rect = gfx::RectF(*frame->sub_buffer_rect);
        }
        }

      • hm, maybe not. From the logs it seemed like the damage was only ever 1080p without this code. […]

        After removing this block of code, the damages actually look a bit better.

        (The code seemed to introduce MORE full screen damage, even when nothing was happening).

        I removed it. But will also keep an eye on the damages while testing.

    • File ui/ozone/platform/drm/gpu/drm_overlay_plane.cc:

      • I am not sure it is required to do this point/size. […]

        Done

    • File ui/ozone/platform/drm/gpu/drm_overlay_validator.cc:

      • Acknowledged

    • File ui/ozone/platform/drm/gpu/hardware_display_plane.h:

      • These are checks that should be added as DCHECKS if you expect never to run into them, or otherwise […]

        I added the validation/DCHECKS to CreateDCTestBlob because that's where the object is constructed and the ScopedDrmPropertyBlob value should be coming from there.

        --
        I created fb_damage_clips_blob member variable just so I could get around the fact that AssignPlaneProps didn't already pass a drm pointer. After thinking about it there was no real need to restrict myself in this way.

        So I've instead updated AssignPlaneProps to additionally accept drm, and damage_clip args. Which was probably always the cleanest/simplest approach.

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 11
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Thu, 27 Jul 2023 01:03:58 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Femi Adegunloye <mrf...@google.com>
    Comment-In-Reply-To: Gil Dekel <gild...@chromium.org>
    Comment-In-Reply-To: Peter McNeeley <peterm...@chromium.org>

    Peter McNeeley (Gerrit)

    unread,
    Jul 28, 2023, 2:30:31 PM7/28/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Gil Dekel, Mark PMNKHME.

    View Change

    1 comment:

    • File components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc:

      • Patch Set #11, Line 2279:

          if (overlays_.size()) {
        TRACE_EVENT1("viz", "SkiaOutputDevice->ScheduleOverlays()",
        "num_overlays", overlays_.size());
        constexpr base:

        I tested your change on redrix. The damage coming through there is correct.
        I think that we have made a refactor and cleanup such that no change here is required.

        I could not discover a positive power result on redrix so perhaps redrix doesnt support this? Is this feature hidden behind a flag that is not present in this cl?

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 11
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Comment-Date: Fri, 28 Jul 2023 18:30:21 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Peter McNeeley (Gerrit)

    unread,
    Jul 28, 2023, 2:32:00 PM7/28/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Gil Dekel, Mark PMNKHME.

    View Change

    1 comment:

      •  TRACE_EVENT1("viz", "SkiaOutputDevice->ScheduleOverlays()",
        "num_overlays", overlays_.size());

      • You can add these here for debugging
        for(auto& each: overlays_){
        DBG_DRAW_RECT("output.overlay.rect", each.display_rect);
        DBG_DRAW_RECT("output.overlay.damage", each.damage_rect);
        }

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 11
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Comment-Date: Fri, 28 Jul 2023 18:31:52 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Femi Adegunloye (Gerrit)

    unread,
    Jul 28, 2023, 3:12:15 PM7/28/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

    View Change

    1 comment:

    • File components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc:


      • TRACE_EVENT1("viz", "SkiaOutputDevice->ScheduleOverlays()",
        "num_overlays", overlays_.size());

      •       constexpr base:

      • I tested your change on redrix. The damage coming through there is correct. […]

      • I haven't noticed any difference on Brya either. I'll check again on the volteer. The Brya was on kernel 5.15 and the volteer is 5.4. What version is your redrix on?

        The feature should not be hidden behind any other flag than #panel-self-refresh-2.

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 11
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Fri, 28 Jul 2023 19:12:06 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Peter McNeeley <peterm...@chromium.org>

    Peter McNeeley (Gerrit)

    unread,
    Jul 28, 2023, 3:18:29 PM7/28/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Gil Dekel, Mark PMNKHME.

    View Change

    1 comment:

    • File components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc:

      • Patch Set #11, Line 2279:

          if (overlays_.size()) {
        TRACE_EVENT1("viz", "SkiaOutputDevice->ScheduleOverlays()",
        "num_overlays", overlays_.size());
        constexpr base:

      • I haven't noticed any difference on Brya either. I'll check again on the volteer. […]

        I might have notice a difference for non overlay (aka only plane damage)

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 11
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Comment-Date: Fri, 28 Jul 2023 19:18:21 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Femi Adegunloye <mrf...@google.com>
    Comment-In-Reply-To: Peter McNeeley <peterm...@chromium.org>

    Femi Adegunloye (Gerrit)

    unread,
    Jul 28, 2023, 3:36:54 PM7/28/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

    View Change

    1 comment:

    • File components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc:

      • Patch Set #11, Line 2279:

          if (overlays_.size()) {
        TRACE_EVENT1("viz", "SkiaOutputDevice->ScheduleOverlays()",
        "num_overlays", overlays_.size());
        constexpr base:

      • I might have notice a difference for non overlay (aka only plane damage)

        Hm, I guess it makes sense that overlays might be harder to do a partial swap for.

        But won't a lot of non-video content be composited anyway? Like browsing email or viewing that ticking clock website.

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 11
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Fri, 28 Jul 2023 19:36:43 +0000

    Femi Adegunloye (Gerrit)

    unread,
    Jul 28, 2023, 5:58:48 PM7/28/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

    View Change

    1 comment:

      •  TRACE_EVENT1("viz", "SkiaOutputDevice->ScheduleOverlays()",
        "num_overlays", overlays_.size());

      • You can add these here for debugging […]

        Done

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 12
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Fri, 28 Jul 2023 21:58:41 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Peter McNeeley <peterm...@chromium.org>

    Peter McNeeley (Gerrit)

    unread,
    Jul 29, 2023, 1:30:06 PM7/29/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

    View Change

    1 comment:

    • File components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc:


      • TRACE_EVENT1("viz", "SkiaOutputDevice->ScheduleOverlays()",
        "num_overlays", overlays_.size());

      •       constexpr base:

      • I might have notice a difference for non overlay (aka only plane damage)

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 11
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Sat, 29 Jul 2023 17:29:59 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Femi Adegunloye (Gerrit)

    unread,
    Aug 1, 2023, 12:53:50 PM8/1/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

    View Change

    1 comment:

    • File components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc:

      • Patch Set #11, Line 2279:

          if (overlays_.size()) {
        TRACE_EVENT1("viz", "SkiaOutputDevice->ScheduleOverlays()",
        "num_overlays", overlays_.size());
        constexpr base:

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 12
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Tue, 01 Aug 2023 16:53:41 +0000

    Gil Dekel (Gerrit)

    unread,
    Aug 2, 2023, 1:47:04 PM8/2/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Mark PMNKHME, Peter McNeeley.

    View Change

    2 comments:

    • File ui/ozone/platform/drm/gpu/drm_gpu_util.cc:

      • Patch Set #11, Line 94:

        DCHECK((x2 - x1) > 0 && (y2 - y1) > 0);
        DCHECK(x1 >= 0 && x2 >= 0 && y1 >= 0 && y2 >= 0);

        Two things:
        1) I'd recommend each condition has its own DCHECK. That way if anything breaks, you'd know exactly which coordinate is the culprit.
        2) DCHECKs help during development and testing, but these will fail silently in production. Is that acceptable? In other words, do we expect clients of `CreateDCBlob()` to never break these rules via input validation around the call-sites? Because otherwise these should be `if` statements with error messages.

    • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 12
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Wed, 02 Aug 2023 17:46:52 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Femi Adegunloye (Gerrit)

    unread,
    Aug 7, 2023, 4:51:12 PM8/7/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

    View Change

    3 comments:

    • File components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc:

      • Patch Set #11, Line 2279:

          if (overlays_.size()) {
        TRACE_EVENT1("viz", "SkiaOutputDevice->ScheduleOverlays()",
        "num_overlays", overlays_.size());
        constexpr base:

      • Apparently for brya devices, psr needs to be enabled in the kernel. […]

        I can confirm from logging intel_psr.c that brya osiris with 5.15 kernel does not support PSR2,

        But my volteer drobit with 5.4 kernel does.

    • File ui/ozone/platform/drm/gpu/drm_gpu_util.cc:

      • Two things: […]

        Yeah, probably better to have these as if statements then.

    • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 13
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Mon, 07 Aug 2023 20:51:02 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Femi Adegunloye <mrf...@google.com>

    Gil Dekel (Gerrit)

    unread,
    Aug 7, 2023, 5:51:20 PM8/7/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Mark PMNKHME, Peter McNeeley.

    View Change

    6 comments:

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 13
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Mon, 07 Aug 2023 21:51:12 +0000

    Femi Adegunloye (Gerrit)

    unread,
    Aug 7, 2023, 6:31:39 PM8/7/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

    View Change

    5 comments:

    • File ui/ozone/platform/drm/gpu/drm_gpu_util.cc:

      • nit: consider replacing with: […]

        Done

      • Done

      • Copy-paste got ya. […]

        Always gotta be careful with the copy-paste T-T. Thanks!

      • Done

      • Done

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 14
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Mon, 07 Aug 2023 22:31:30 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Gil Dekel <gild...@chromium.org>

    Peter McNeeley (Gerrit)

    unread,
    Aug 8, 2023, 10:40:29 AM8/8/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Gil Dekel, Mark PMNKHME.

    View Change

    1 comment:

    • File components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc:

      • Patch Set #11, Line 2279:

          if (overlays_.size()) {
        TRACE_EVENT1("viz", "SkiaOutputDevice->ScheduleOverlays()",
        "num_overlays", overlays_.size());
        constexpr base:

      • I can confirm from logging intel_psr.c that brya osiris with 5.15 kernel does not support PSR2, […]

        Any notes on power differences?

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 14
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Comment-Date: Tue, 08 Aug 2023 14:40:18 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Femi Adegunloye (Gerrit)

    unread,
    Aug 8, 2023, 3:27:13 PM8/8/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

    View Change

    1 comment:

    • File components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc:

      • Patch Set #11, Line 2279:

          if (overlays_.size()) {
        TRACE_EVENT1("viz", "SkiaOutputDevice->ScheduleOverlays()",
        "num_overlays", overlays_.size());
        constexpr base:

      • Any notes on power differences?

        I'll need to crunch the numbers on turbostat, but just from looking it over the PkgWatt was twice as likely to be over 3.00. It would also dip below 2.8 when ON but never when OFF.
        -CorWatt and GFXWatt are a bit harder to read at a glance, but my impression is there is no difference with PSR on/off.

        Battery_sample.py: I think it's a bit easier to say PSR is saving power here.
        I just did a quick run. for 250 samples at 1 second each.
        PSR On - median =4.7003845000000002
        PSR Off - median =5.5256259999999999

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 14
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Tue, 08 Aug 2023 19:27:00 +0000

    Gil Dekel (Gerrit)

    unread,
    Aug 8, 2023, 4:40:32 PM8/8/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Mark PMNKHME, Peter McNeeley.

    View Change

    2 comments:

    • Patchset:

      • Patch Set #14:

        Last comment. Everything else LGTM. Will +1 once it's resolved.

    • File ui/ozone/platform/drm/gpu/drm_gpu_util.cc:

      • Patch Set #14, Line 89: int x1, int y1, int x2, int y2

        Thinking about this further.. is there a reason why we don't pass a `const gfx::Rect&` here, given that you have one available at the call-site?

        It will simplify the call-sites and provide validation API: `IsEmpty()`, `width()`, `height()`, and `ToString()` that can help with all these checks (IIUC, width/height would be negative if the x's and y's were flipped).

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 14
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Tue, 08 Aug 2023 20:40:23 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Femi Adegunloye (Gerrit)

    unread,
    Aug 8, 2023, 6:16:13 PM8/8/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

    View Change

    1 comment:

    • File ui/ozone/platform/drm/gpu/drm_gpu_util.cc:

      • Thinking about this further.. […]

        You're right. I'm not really sure why I was hesitant to use the gfx::Rect directly, but I switched things over and it made things cleaner.

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 16
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Tue, 08 Aug 2023 22:16:05 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Gil Dekel <gild...@chromium.org>

    Femi Adegunloye (Gerrit)

    unread,
    Aug 9, 2023, 4:01:32 PM8/9/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

    View Change

    2 comments:

    • File ui/ozone/platform/drm/gpu/drm_gpu_util.cc:

      • Patch Set #17, Line 110:

        I removed IsEmpty since it just checks width/height != 0.

        removed rect.bottom() and rect.right() checks because they are impossible to hit if width/height, x/y are already checked.

        changed to only print rect.ToString()

    • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

      • Patch Set #17, Line 138: auto clip_in_bounds = src_rect.Contains(damage_rect);

        Added a check here that the damage clip is contained within the source plane.

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 17
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Wed, 09 Aug 2023 20:01:20 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Gil Dekel (Gerrit)

    unread,
    Aug 10, 2023, 5:19:26 PM8/10/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Mark PMNKHME, Peter McNeeley.

    Patch set 17:Code-Review +1

    View Change

    4 comments:

    • Patchset:

    • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

      • Patch Set #17, Line 138: auto clip_in_bounds = src_rect.Contains(damage_rect);

        Added a check here that the damage clip is contained within the source plane.

      • Thanks!

      • `const bool` - no need to leave the reader guessing what type is returned here.

      • Patch Set #17, Line 145: }

        So damage rects that do not have an id or are outside of the plane are just ignored? Is that ok? no need to log it somehow?

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 17
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Thu, 10 Aug 2023 21:19:19 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Femi Adegunloye <mrf...@google.com>

    Femi Adegunloye (Gerrit)

    unread,
    Aug 10, 2023, 6:21:31 PM8/10/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Gil Dekel, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Mark PMNKHME, Peter McNeeley.

    View Change

    2 comments:

    • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

      • `const bool` - no need to leave the reader guessing what type is returned here.

        Done

      • So damage rects that do not have an id or are outside of the plane are just ignored? Is that ok? no […]

        I added logging for out of bounds damage rects, but missing ID only means the feature isn't enabled or supported. It's not an error.

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 17
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Thu, 10 Aug 2023 22:21:21 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Gil Dekel <gild...@chromium.org>

    Gil Dekel (Gerrit)

    unread,
    Aug 11, 2023, 2:15:23 PM8/11/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Mark PMNKHME, Peter McNeeley.

    Patch set 18:Code-Review +1

    View Change

    1 comment:

    • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

      • Patch Set #18, Line 140: LOG(ERROR) << "Damage clip not contained inside source plane";

        Sorry, I know I suggested logging, but let's be mindful here. If this is a likely/common case, this log will become very spammy, and we should avoid that.

        Depending on the likelihood of this case, you should consider changing this to `VLOG(1|2)` instead. But if this should never happen, `ERROR` is good here.

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 18
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Fri, 11 Aug 2023 18:15:16 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes

    Femi Adegunloye (Gerrit)

    unread,
    Aug 11, 2023, 5:39:53 PM8/11/23
    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Gil Dekel, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Mark PMNKHME, Peter McNeeley.

    View Change

    1 comment:

    • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

      • Sorry, I know I suggested logging, but let's be mindful here. […]

        I don't expect this to be hit ever unless there's a bug in damage tracking. The damaged area should represent a region inside of the screen, and I've also never seen it occur in testing.

    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
    Gerrit-Change-Number: 4554495
    Gerrit-PatchSet: 18
    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
    Gerrit-CC: Brian Ho <h...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Mark PMNKHME <marky...@google.com>
    Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
    Gerrit-Comment-Date: Fri, 11 Aug 2023 21:39:44 +0000

    Peter McNeeley (Gerrit)

    unread,
    Aug 14, 2023, 11:05:00 AM8/14/23
    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Gil Dekel, Mark PMNKHME, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

    Attention is currently required from: Femi Adegunloye, Mark PMNKHME.

    Patch set 18:Code-Review +1

    View Change

      To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
      Gerrit-Change-Number: 4554495
      Gerrit-PatchSet: 18
      Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
      Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
      Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
      Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
      Gerrit-CC: Brian Ho <h...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: Mark PMNKHME <marky...@google.com>
      Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
      Gerrit-Comment-Date: Mon, 14 Aug 2023 15:04:52 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes

      Peter McNeeley (Gerrit)

      unread,
      Aug 14, 2023, 11:05:10 AM8/14/23
      to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Gil Dekel, Mark PMNKHME, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

      Attention is currently required from: Femi Adegunloye, Mark PMNKHME.

      Patch set 18:-Code-Review

      The change is no longer submittable: Code-Owners is unsatisfied now.

      View Change

        To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
        Gerrit-Change-Number: 4554495
        Gerrit-PatchSet: 18
        Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
        Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
        Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
        Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
        Gerrit-CC: Brian Ho <h...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Mark PMNKHME <marky...@google.com>
        Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
        Gerrit-Comment-Date: Mon, 14 Aug 2023 15:05:02 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes

        Peter McNeeley (Gerrit)

        unread,
        Aug 14, 2023, 11:05:36 AM8/14/23
        to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Gil Dekel, Mark PMNKHME, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

        Attention is currently required from: Femi Adegunloye, Mark PMNKHME.

        View Change

        1 comment:

        To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
        Gerrit-Change-Number: 4554495
        Gerrit-PatchSet: 18
        Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
        Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
        Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
        Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
        Gerrit-CC: Brian Ho <h...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Mark PMNKHME <marky...@google.com>
        Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
        Gerrit-Comment-Date: Mon, 14 Aug 2023 15:05:27 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No

        Mark PMNKHME (Gerrit)

        unread,
        Aug 15, 2023, 10:09:48 AM8/15/23
        to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

        Attention is currently required from: Femi Adegunloye.

        View Change

        4 comments:

        • File ui/ozone/platform/drm/gpu/drm_gpu_util.cc:

        • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

        • File ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc:

        To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
        Gerrit-Change-Number: 4554495
        Gerrit-PatchSet: 18
        Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
        Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
        Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
        Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
        Gerrit-CC: Brian Ho <h...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
        Gerrit-Comment-Date: Tue, 15 Aug 2023 14:09:38 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No

        Gil Dekel (Gerrit)

        unread,
        Aug 15, 2023, 12:48:26 PM8/15/23
        to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Peter McNeeley, Mark PMNKHME, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

        Attention is currently required from: Femi Adegunloye, Mark PMNKHME.

        View Change

        1 comment:

        • File ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc:

          • +1

            That's a very good point. Even if the intention here is to get some sort of an "empty state", `drm` is used without checking it's valid in `AssignPlaneProps()`...

            So you either have to pass it here, or add guards against a null `drm` within `AssignPlaneProps()` before using it.

            I wonder if a better approach here would be to implement something like `AssignEmptyPlaneProps()` that does that internally since we're doing it both here and in ln 229..

        To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
        Gerrit-Change-Number: 4554495
        Gerrit-PatchSet: 18
        Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
        Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
        Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
        Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
        Gerrit-CC: Brian Ho <h...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Mark PMNKHME <marky...@google.com>
        Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
        Gerrit-Comment-Date: Tue, 15 Aug 2023 16:48:16 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Mark PMNKHME <marky...@google.com>

        Femi Adegunloye (Gerrit)

        unread,
        Aug 15, 2023, 5:18:16 PM8/15/23
        to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Peter McNeeley, Gil Dekel, Mark PMNKHME, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

        Attention is currently required from: Mark PMNKHME.

        View Change

        4 comments:

        • File ui/ozone/platform/drm/gpu/drm_gpu_util.cc:

          • Patch Set #18, Line 90:

              ScopedDrmModeRectPtr dmg_rect(
            static_cast<drm_mode_rect*>(malloc(sizeof(drm_mode_rect))));

            opt: personal opinion: allocate this just before it's used on L110

          • Done

          • Done

        • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

          • It's an optional property, so I guess it doesn't need to be reported. It's definitely not an error if it's missing. I removed the log statement.

        • File ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc:

          • +1 […]

            Yeah a drm ptr check is a straightforward fix since the function's not actually needed in the empty state.

            I'm not sure an "AssignEmptyPlaneProps()" would be anything more than duplicate code or a helper function that calls AssignPlaneProps() with empty values anyway, so I think the drm ptr check is the cleanest solution.

        To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
        Gerrit-Change-Number: 4554495
        Gerrit-PatchSet: 19
        Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
        Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
        Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
        Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
        Gerrit-CC: Brian Ho <h...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Mark PMNKHME <marky...@google.com>
        Gerrit-Comment-Date: Tue, 15 Aug 2023 21:18:06 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Mark PMNKHME <marky...@google.com>
        Comment-In-Reply-To: Gil Dekel <gild...@chromium.org>

        Gil Dekel (Gerrit)

        unread,
        Aug 16, 2023, 10:53:44 AM8/16/23
        to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Peter McNeeley, Mark PMNKHME, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

        Attention is currently required from: Femi Adegunloye, Mark PMNKHME.

        Patch set 19:-Code-Review

        View Change

        2 comments:

          • Yeah a drm ptr check is a straightforward fix since the function's not actually needed in the empty […]

            I'd say that a `ClearPlaneProps()` utility function may be outside the scope of your work, but its purpose is to actually _reduce_ duplicate code (since we're doing it in at least two call-sites in `ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc`; lns. 229 and 339), and ensure that the planes are cleared within the plane safely and on its own terms. The issue with `AssignPlaneProps()` is that it is designed to check and work on valid inputs, and may end up breaking if invalid input is provided. It's hard to catch all edge-cases..

        To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
        Gerrit-Change-Number: 4554495
        Gerrit-PatchSet: 19
        Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
        Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
        Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
        Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
        Gerrit-CC: Brian Ho <h...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Mark PMNKHME <marky...@google.com>
        Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
        Gerrit-Comment-Date: Wed, 16 Aug 2023 14:53:36 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Mark PMNKHME <marky...@google.com>

        Femi Adegunloye (Gerrit)

        unread,
        Aug 16, 2023, 5:33:19 PM8/16/23
        to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Peter McNeeley, Gil Dekel, Mark PMNKHME, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

        Attention is currently required from: Gil Dekel, Mark PMNKHME.

        View Change

        1 comment:

        • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

          • nit: `drm` should be checked first ([short-circuit](https://en.wikipedia. […]

            Sure I moved it, but short-circuit is more about avoiding side effects of evaluation. None of the three expressions have side effects, and can evaluate false independently so I don't know that there's any real advantage except for having a structurally logical ordering.

        To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
        Gerrit-Change-Number: 4554495
        Gerrit-PatchSet: 20
        Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
        Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
        Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
        Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
        Gerrit-CC: Brian Ho <h...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Mark PMNKHME <marky...@google.com>
        Gerrit-Attention: Gil Dekel <gild...@chromium.org>
        Gerrit-Comment-Date: Wed, 16 Aug 2023 21:33:12 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Gil Dekel <gild...@chromium.org>

        Mark PMNKHME (Gerrit)

        unread,
        Aug 17, 2023, 12:07:28 PM8/17/23
        to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Peter McNeeley, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

        Attention is currently required from: Femi Adegunloye, Gil Dekel.

        Patch set 20:Code-Review +1

        View Change

        1 comment:

        To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
        Gerrit-Change-Number: 4554495
        Gerrit-PatchSet: 20
        Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
        Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
        Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
        Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
        Gerrit-CC: Brian Ho <h...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
        Gerrit-Attention: Gil Dekel <gild...@chromium.org>
        Gerrit-Comment-Date: Thu, 17 Aug 2023 16:07:21 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes

        Peter McNeeley (Gerrit)

        unread,
        Aug 18, 2023, 2:42:24 PM8/18/23
        to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

        Attention is currently required from: Femi Adegunloye, Gil Dekel.

        Patch set 20:Code-Review +1

        View Change

          To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
          Gerrit-Change-Number: 4554495
          Gerrit-PatchSet: 20
          Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
          Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
          Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
          Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
          Gerrit-CC: Brian Ho <h...@chromium.org>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
          Gerrit-Attention: Gil Dekel <gild...@chromium.org>
          Gerrit-Comment-Date: Fri, 18 Aug 2023 18:42:15 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes

          Femi Adegunloye (Gerrit)

          unread,
          Aug 18, 2023, 2:53:31 PM8/18/23
          to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Peter McNeeley, Mark PMNKHME, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

          Attention is currently required from: Gil Dekel.

          Patch set 20:Commit-Queue +2

          View Change

            To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
            Gerrit-Change-Number: 4554495
            Gerrit-PatchSet: 20
            Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
            Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
            Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
            Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
            Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
            Gerrit-CC: Brian Ho <h...@chromium.org>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-Attention: Gil Dekel <gild...@chromium.org>
            Gerrit-Comment-Date: Fri, 18 Aug 2023 18:53:22 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes

            Femi Adegunloye (Gerrit)

            unread,
            Aug 18, 2023, 8:55:51 PM8/18/23
            to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Chromium LUCI CQ, Peter McNeeley, Mark PMNKHME, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

            Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

            Patch set 21:Commit-Queue +1

            View Change

              To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-MessageType: comment
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
              Gerrit-Change-Number: 4554495
              Gerrit-PatchSet: 21
              Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
              Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
              Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
              Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
              Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
              Gerrit-CC: Brian Ho <h...@chromium.org>
              Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
              Gerrit-Attention: Mark PMNKHME <marky...@google.com>
              Gerrit-Attention: Gil Dekel <gild...@chromium.org>
              Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
              Gerrit-Comment-Date: Sat, 19 Aug 2023 00:55:43 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes

              Femi Adegunloye (Gerrit)

              unread,
              Aug 21, 2023, 12:34:30 PM8/21/23
              to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Chromium LUCI CQ, Peter McNeeley, Mark PMNKHME, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

              Attention is currently required from: Gil Dekel, Mark PMNKHME, Peter McNeeley.

              View Change

              3 comments:

              • Patchset:

                • Acknowledged

              • Patchset:

                • Patch Set #21:

                  Hi, can everyone reapprove.
                  I updated the unit tests to compile with the new function defs.

                  I will add damage clip specific tests in the next CL

              • File components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc:

                • Patch Set #11, Line 2279:

                    if (overlays_.size()) {
                  TRACE_EVENT1("viz", "SkiaOutputDevice->ScheduleOverlays()",
                  "num_overlays", overlays_.size());
                  constexpr base:

                • I'll need to crunch the numbers on turbostat, but just from looking it over the PkgWatt was twice as […]

                  Done

              To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

              Gerrit-MessageType: comment
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
              Gerrit-Change-Number: 4554495
              Gerrit-PatchSet: 21
              Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
              Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
              Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
              Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
              Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
              Gerrit-CC: Brian Ho <h...@chromium.org>
              Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
              Gerrit-Attention: Mark PMNKHME <marky...@google.com>
              Gerrit-Attention: Gil Dekel <gild...@chromium.org>
              Gerrit-Attention: Peter McNeeley <peterm...@chromium.org>
              Gerrit-Comment-Date: Mon, 21 Aug 2023 16:34:21 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              Comment-In-Reply-To: Femi Adegunloye <mrf...@google.com>
              Comment-In-Reply-To: Peter McNeeley <peterm...@chromium.org>

              Peter McNeeley (Gerrit)

              unread,
              Aug 21, 2023, 2:54:58 PM8/21/23
              to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Chromium LUCI CQ, Mark PMNKHME, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

              Attention is currently required from: Femi Adegunloye, Gil Dekel, Mark PMNKHME.

              Patch set 21:Code-Review +1

              View Change

                To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

                Gerrit-MessageType: comment
                Gerrit-Project: chromium/src
                Gerrit-Branch: main
                Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
                Gerrit-Change-Number: 4554495
                Gerrit-PatchSet: 21
                Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
                Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
                Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
                Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
                Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
                Gerrit-CC: Brian Ho <h...@chromium.org>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-Attention: Mark PMNKHME <marky...@google.com>
                Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
                Gerrit-Attention: Gil Dekel <gild...@chromium.org>
                Gerrit-Comment-Date: Mon, 21 Aug 2023 18:54:51 +0000
                Gerrit-HasComments: No
                Gerrit-Has-Labels: Yes

                Mark PMNKHME (Gerrit)

                unread,
                Aug 21, 2023, 2:59:43 PM8/21/23
                to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Peter McNeeley, Chromium LUCI CQ, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

                Attention is currently required from: Femi Adegunloye, Gil Dekel.

                Patch set 21:Code-Review +1

                View Change

                  To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

                  Gerrit-MessageType: comment
                  Gerrit-Project: chromium/src
                  Gerrit-Branch: main
                  Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
                  Gerrit-Change-Number: 4554495
                  Gerrit-PatchSet: 21
                  Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
                  Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
                  Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
                  Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
                  Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
                  Gerrit-CC: Brian Ho <h...@chromium.org>
                  Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                  Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
                  Gerrit-Attention: Gil Dekel <gild...@chromium.org>
                  Gerrit-Comment-Date: Mon, 21 Aug 2023 18:59:37 +0000
                  Gerrit-HasComments: No
                  Gerrit-Has-Labels: Yes

                  Femi Adegunloye (Gerrit)

                  unread,
                  Aug 21, 2023, 3:01:42 PM8/21/23
                  to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Chromium LUCI CQ, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

                  Attention is currently required from: Gil Dekel.

                  Patch set 21:Commit-Queue +2

                  View Change

                    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-MessageType: comment
                    Gerrit-Project: chromium/src
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
                    Gerrit-Change-Number: 4554495
                    Gerrit-PatchSet: 21
                    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
                    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
                    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
                    Gerrit-CC: Brian Ho <h...@chromium.org>
                    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
                    Gerrit-Comment-Date: Mon, 21 Aug 2023 19:01:32 +0000
                    Gerrit-HasComments: No
                    Gerrit-Has-Labels: Yes

                    Gil Dekel (Gerrit)

                    unread,
                    Aug 21, 2023, 3:08:04 PM8/21/23
                    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Chromium LUCI CQ, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

                    Attention is currently required from: Femi Adegunloye.

                    View Change

                    1 comment:

                    • Patchset:

                    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-MessageType: comment
                    Gerrit-Project: chromium/src
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
                    Gerrit-Change-Number: 4554495
                    Gerrit-PatchSet: 21
                    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
                    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
                    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
                    Gerrit-CC: Brian Ho <h...@chromium.org>
                    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Comment-Date: Mon, 21 Aug 2023 19:07:56 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No

                    Femi Adegunloye (Gerrit)

                    unread,
                    Aug 21, 2023, 3:22:54 PM8/21/23
                    to asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Chromium LUCI CQ, Gil Dekel, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

                    Attention is currently required from: Gil Dekel.

                    View Change

                    1 comment:

                    • Patchset:

                      • Patch Set #21:

                        I am curious.. […]

                        I plan to add them in the next CL. This code is currently disabled and I don't plan on enabling it until after unit tests have been added and I've run a finch trial.

                    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-MessageType: comment
                    Gerrit-Project: chromium/src
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
                    Gerrit-Change-Number: 4554495
                    Gerrit-PatchSet: 21
                    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
                    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
                    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
                    Gerrit-CC: Brian Ho <h...@chromium.org>
                    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                    Gerrit-Attention: Gil Dekel <gild...@chromium.org>
                    Gerrit-Comment-Date: Mon, 21 Aug 2023 19:22:44 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    Comment-In-Reply-To: Gil Dekel <gild...@chromium.org>

                    Gil Dekel (Gerrit)

                    unread,
                    Aug 21, 2023, 3:25:22 PM8/21/23
                    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Mark PMNKHME, Peter McNeeley, Chromium LUCI CQ, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

                    Attention is currently required from: Femi Adegunloye.

                    Patch set 21:Code-Review +1

                    View Change

                    1 comment:

                    • Patchset:

                    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-MessageType: comment
                    Gerrit-Project: chromium/src
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
                    Gerrit-Change-Number: 4554495
                    Gerrit-PatchSet: 21
                    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
                    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
                    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
                    Gerrit-CC: Brian Ho <h...@chromium.org>
                    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Comment-Date: Mon, 21 Aug 2023 19:25:14 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: Yes
                    Comment-In-Reply-To: Femi Adegunloye <mrf...@google.com>
                    Comment-In-Reply-To: Gil Dekel <gild...@chromium.org>

                    Chromium LUCI CQ (Gerrit)

                    unread,
                    Aug 21, 2023, 4:39:28 PM8/21/23
                    to Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Gil Dekel, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

                    Chromium LUCI CQ submitted this change.

                    View Change

                    Approvals: Gil Dekel: Looks good to me Peter McNeeley: Looks good to me Femi Adegunloye: Commit Mark PMNKHME: Looks good to me
                    ozone/drm: add support for psr2 damage rects

                    Pass along damage rects to optional FB_DAMAGE_CLIPS property,
                    enabling support for PSR-2 on AMD and Intel.

                    BUG=b:232858482
                    TEST=build and deploy to volteer delbin

                    Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
                    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4554495
                    Reviewed-by: Peter McNeeley <peterm...@chromium.org>
                    Commit-Queue: Femi Adegunloye <mrf...@google.com>
                    Reviewed-by: Gil Dekel <gild...@chromium.org>
                    Reviewed-by: Mark PMNKHME <marky...@google.com>
                    Cr-Commit-Position: refs/heads/main@{#1186051}
                    ---
                    M components/viz/service/display_embedder/skia_output_surface_impl_on_gpu.cc
                    M ui/ozone/platform/drm/common/scoped_drm_types.h
                    M ui/ozone/platform/drm/gpu/drm_gpu_util.cc
                    M ui/ozone/platform/drm/gpu/drm_gpu_util.h
                    M ui/ozone/platform/drm/gpu/drm_overlay_plane.cc
                    M ui/ozone/platform/drm/gpu/drm_overlay_plane.h
                    M ui/ozone/platform/drm/gpu/drm_overlay_validator.cc
                    M ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc
                    M ui/ozone/platform/drm/gpu/hardware_display_controller_unittest.cc
                    M ui/ozone/platform/drm/gpu/hardware_display_plane.cc
                    M ui/ozone/platform/drm/gpu/hardware_display_plane.h
                    M ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc
                    M ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.h
                    M ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.cc
                    M ui/ozone/platform/drm/gpu/hardware_display_plane_manager_unittest.cc
                    15 files changed, 129 insertions(+), 46 deletions(-)


                    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-MessageType: merged
                    Gerrit-Project: chromium/src
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
                    Gerrit-Change-Number: 4554495
                    Gerrit-PatchSet: 22
                    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                    Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
                    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
                    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
                    Gerrit-CC: Brian Ho <h...@chromium.org>

                    Miriam Polzer (Gerrit)

                    unread,
                    Sep 22, 2023, 3:28:32 AM9/22/23
                    to Chromium LUCI CQ, Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Gil Dekel, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

                    Attention is currently required from: Femi Adegunloye.

                    View Change

                    1 comment:

                    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-MessageType: comment
                    Gerrit-Project: chromium/src
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
                    Gerrit-Change-Number: 4554495
                    Gerrit-PatchSet: 22
                    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                    Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
                    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
                    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
                    Gerrit-CC: Brian Ho <h...@chromium.org>
                    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                    Gerrit-CC: Miriam Polzer <mpo...@google.com>
                    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Comment-Date: Fri, 22 Sep 2023 07:28:17 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No

                    Gil Dekel (Gerrit)

                    unread,
                    Sep 22, 2023, 12:50:13 PM9/22/23
                    to Chromium LUCI CQ, Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Miriam Polzer, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

                    Attention is currently required from: Femi Adegunloye.

                    View Change

                    1 comment:

                    • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

                    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-MessageType: comment
                    Gerrit-Project: chromium/src
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
                    Gerrit-Change-Number: 4554495
                    Gerrit-PatchSet: 22
                    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                    Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
                    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
                    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
                    Gerrit-CC: Brian Ho <h...@chromium.org>
                    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                    Gerrit-CC: Miriam Polzer <mpo...@google.com>
                    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Comment-Date: Fri, 22 Sep 2023 16:50:04 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    Comment-In-Reply-To: Miriam Polzer <mpo...@google.com>

                    Femi Adegunloye (Gerrit)

                    unread,
                    Sep 22, 2023, 1:19:24 PM9/22/23
                    to Chromium LUCI CQ, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Miriam Polzer, Gil Dekel, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

                    View Change

                    1 comment:

                    • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

                      • We discussed this possibility here: https://chromium-review.googlesource. […]

                        I'm guessing this is a tast test or unit test? I can understand why damage might be incorrect if it's not the priority for the test, but I think out of bounds damage would be a decent indicator of a bug in real environments.

                        I did take a look at the KMS documentation on fb_damage_clips though, and it does sound like it will just ignore out of bounds clips:
                        https://docs.kernel.org/gpu/drm-kms.html#c.drm_atomic_helper_damage_iter_next
                        "This iterator will skip damage clips outside of plane src."

                        @Gil, one option here is that I limit logging to only when plane_fb_damage_clips is being used. Another one is that I don't log, or switch to VLOG like you originally suggested in your comment.

                        @Miriam, is there any chance you test can be modified to send a damage without bounds, or empty damage?

                        Actually now that I think about it, maybe the test has an empty src_rect, and that's why clip_in_bounds is returning false? That could be a test specific issue where empty src_rect should be ignored.

                    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-MessageType: comment
                    Gerrit-Project: chromium/src
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
                    Gerrit-Change-Number: 4554495
                    Gerrit-PatchSet: 22
                    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                    Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
                    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
                    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
                    Gerrit-CC: Brian Ho <h...@chromium.org>
                    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                    Gerrit-CC: Miriam Polzer <mpo...@google.com>
                    Gerrit-Comment-Date: Fri, 22 Sep 2023 17:19:15 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    Comment-In-Reply-To: Miriam Polzer <mpo...@google.com>
                    Comment-In-Reply-To: Gil Dekel <gild...@chromium.org>

                    Gil Dekel (Gerrit)

                    unread,
                    Sep 22, 2023, 4:06:01 PM9/22/23
                    to Chromium LUCI CQ, Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Miriam Polzer, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

                    Attention is currently required from: Femi Adegunloye.

                    View Change

                    1 comment:

                    • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

                      • Well, you're introducing a new behavior to Chrome - so it's up to you to define user-behavior and logging around this new behavior.

                      • >I did take a look at the KMS documentation on fb_damage_clips though, and it does sound like it will just ignore out of bounds clips:

                      • It's good that KMS handles/ignores misbehaving damages, but it doesn't change the fact that we may still have a failure in Chrome.

                        If we should never have out of bounds damage clips, then an ERROR or WARNING log is appropriate and will help catching all current and future mishandling of damage clips (and also debugging). Whether or not we should emit one for every occurrence is up to how critical or abnormal mishandling damage rects is and the amount of useful information we get from each log. Since we're not printing any variables here, like plane size vs. damage size, the current information value is very low.

                        If all users must handle damage rects one way or another, then the test should be fixed to set up and define a damage rect correctly, and so is any other future discoveries of damage rect mishandling due to this ERROR.

                        If performance is going to suffer due to Chrome not handling damage clips correctly, thus disabling psr2 or under-utilizing it, then having these logs could prove important.

                      • Another one is that I don't log, or switch to VLOG like you originally suggested in your comment.

                      • Thinking about this further, I don't think moving it to VLOG is better, since we'll be potentially hiding a crucial error signal here, and/or spam the logs when VLOG is enabled.

                        My suggestion is:
                        1) Fix any and all tests to do the right/trivial thing around damage rects (might want to run all ozone/display unittests and look for all cases in which you spam this log.
                        2) Modify the log to provide more useful information (plane vs. dmg size?, maybe frame ID if that's a thing?)
                        3) If possible, emit a log only if it's different from the previous one (i.e. ID and damage are different?)

                    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-MessageType: comment
                    Gerrit-Project: chromium/src
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
                    Gerrit-Change-Number: 4554495
                    Gerrit-PatchSet: 22
                    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                    Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
                    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
                    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
                    Gerrit-CC: Brian Ho <h...@chromium.org>
                    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                    Gerrit-CC: Miriam Polzer <mpo...@google.com>
                    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Comment-Date: Fri, 22 Sep 2023 20:05:53 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    Comment-In-Reply-To: Miriam Polzer <mpo...@google.com>

                    Miriam Polzer (Gerrit)

                    unread,
                    Sep 25, 2023, 7:45:46 AM9/25/23
                    to Chromium LUCI CQ, Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Gil Dekel, Mark PMNKHME, Peter McNeeley, Brian Ho, Chromium Metrics Reviews, chromium...@chromium.org

                    Attention is currently required from: Femi Adegunloye.

                    View Change

                    1 comment:

                    • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

                      • Well, you're introducing a new behavior to Chrome - so it's up to you to define user-behavior and lo […]

                        My test only runs through OOBE, just as any user does. It doesn't create or see anything a prod user doesn't see.

                    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-MessageType: comment
                    Gerrit-Project: chromium/src
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
                    Gerrit-Change-Number: 4554495
                    Gerrit-PatchSet: 22
                    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                    Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
                    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
                    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
                    Gerrit-CC: Brian Ho <h...@chromium.org>
                    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                    Gerrit-CC: Miriam Polzer <mpo...@google.com>
                    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Comment-Date: Mon, 25 Sep 2023 11:45:34 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    Comment-In-Reply-To: Miriam Polzer <mpo...@google.com>
                    Comment-In-Reply-To: Gil Dekel <gild...@chromium.org>
                    Comment-In-Reply-To: Femi Adegunloye <mrf...@google.com>

                    Brian Ho (Gerrit)

                    unread,
                    Oct 23, 2023, 3:28:47 PM10/23/23
                    to Chromium LUCI CQ, Femi Adegunloye, asvitki...@chromium.org, asvitkine...@chromium.org, jmedle...@chromium.org, cc-...@chromium.org, penghu...@chromium.org, ozone-...@chromium.org, Miriam Polzer, Gil Dekel, Mark PMNKHME, Peter McNeeley, Chromium Metrics Reviews, chromium...@chromium.org

                    Attention is currently required from: Femi Adegunloye.

                    View Change

                    1 comment:

                    • File ui/ozone/platform/drm/gpu/hardware_display_plane_atomic.cc:

                      • My test only runs through OOBE, just as any user does. […]

                        +1 here

                        I ran into this when moving a window with a video partially offscreen, and this error gets logged once per frame. Nothing else seems broken, but it makes debugging crashes and local development kinda annoying. Can we suppress these logs or challenge the assumption that this is an error state?

                    To view, visit change 4554495. To unsubscribe, or for help writing mail filters, visit settings.

                    Gerrit-MessageType: comment
                    Gerrit-Project: chromium/src
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I5b0e66958620242386835319f96a7cd9fd493ae3
                    Gerrit-Change-Number: 4554495
                    Gerrit-PatchSet: 22
                    Gerrit-Owner: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                    Gerrit-Reviewer: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Reviewer: Gil Dekel <gild...@chromium.org>
                    Gerrit-Reviewer: Mark PMNKHME <marky...@google.com>
                    Gerrit-Reviewer: Peter McNeeley <peterm...@chromium.org>
                    Gerrit-CC: Brian Ho <h...@chromium.org>
                    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                    Gerrit-CC: Miriam Polzer <mpo...@google.com>
                    Gerrit-Attention: Femi Adegunloye <mrf...@google.com>
                    Gerrit-Comment-Date: Mon, 23 Oct 2023 19:28:39 +0000
                    Reply all
                    Reply to author
                    Forward
                    0 new messages