diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2018-07-25 15:41:56 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-07-25 15:41:56 +0200 |
commit | 8f3c39b8565df2504d727be2ed6d2643bae2b317 (patch) | |
tree | 6746a8929d8307b0073054c43d10d8bfb8f08483 /Documentation/nios2 | |
parent | 7433914efd584b22bb49d3e1eee001f5d0525ecd (diff) | |
download | linux-8f3c39b8565df2504d727be2ed6d2643bae2b317.tar.bz2 |
udlfb: optimization - test the backing buffer
Currently, the udlfb driver only tests for identical bytes at the
beginning or at the end of a page and renders anything between the first
and last mismatching pixel. But pages are not the same as lines, so this
is quite suboptimal - if there is something modified at the beginning of a
page and at the end of a page, the whole page is rendered, even if most of
the page is not modified.
This patch makes it test for identical pixels at the beginning and end of
each rendering command. This patch improves identical byte detection by
41% when playing video in a window.
This patch also fixes a possible screen corruption if the user is writing
to the framebuffer while dlfb_render_hline is in progress - the pixel data
that is copied to the backbuffer with memcpy may be different from the
pixel data that is actually rendered to the hardware (because the content
of the framebuffer may change between memcpy and the rendering command).
We must make sure that we copy exactly the same pixel as the pixel that is
being rendered.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
[b.zolnierkie: fix code indent]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'Documentation/nios2')
0 files changed, 0 insertions, 0 deletions