ozone/drm: Skip Copying (or Clearing) Buffers when Testing Modeset
This CL modifies GetModesetBuffer() to skip the copying or clearing of a freshly acquired buffer when we mode test, since it will not be used in the next page flip. This reduced the average traced duration of GetModesetBuffer() from 1.8ms (min:0.008ms to max:5.36ms) to 0.006ms (min:0.004ms to max:0.029ms). This is a significant reduction since GetModesetBuffer() is called num_of_displays x num_of_mode_tests times per display configuration. The average traced duration of a single TestModeset() was reduced from 8.9ms (min:5.04ms to max:16.9ms) to 0.059ms (min:0.04ms to max:0.199ms). Tracing was collected on a Drallion, with two 4K 13.3" monitors connected via MST and running 1,000 consecutive TestModeset(). Test: Trace on a Drallion Change-Id: I0673f421dab597d45ab8e5666e17b2612bbca55a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2590393Reviewed-by:Mark Yacoub <markyacoub@google.com> Reviewed-by:
Daniel Nicoara <dnicoara@chromium.org> Commit-Queue: Gil Dekel <gildekel@chromium.org> Cr-Commit-Position: refs/heads/master@{#837263}
Showing
Please register or sign in to comment