xserver/hw/xfree86/drivers/modesetting
Adam Jackson fcbafdfd79 modesetting: Implement a double-buffered shadow mode
Server GPUs often have a VNC feature attached to allow remote console.
The controller implementing this feature is usually not very powerful,
and we can easily swamp it with work.  This is made somewhat worse by
damage over-reporting the size of the dirty region, and a whole lot
worse by applications (or shells) that update the screen with identical
pixel content as was already there.

Fix this by double-buffering the shadow fb, using memcmp to identify
dirty tiles on each update pass.  Since both shadows are in host memory
the memcmp is cheap, and worth it given the win in network bandwidth.
The tile size is somewhat arbitrarily chosen to be one cacheline wide at
32bpp on Intel Core.

By default we enable this behaviour for (a subset of) known server GPUs;
the heuristic could use work.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-07-02 09:54:07 +02:00
..
Makefile.am modesetting: Implement 32->24 bpp conversion in shadow update 2016-07-02 09:28:04 +02:00
dri2.c modesetting: avoid double free if AddResource fails 2016-03-08 10:19:55 -05:00
driver.c modesetting: Implement a double-buffered shadow mode 2016-07-02 09:54:07 +02:00
driver.h modesetting: Implement a double-buffered shadow mode 2016-07-02 09:54:07 +02:00
drmmode_display.c modesetting: Implement a double-buffered shadow mode 2016-07-02 09:54:07 +02:00
drmmode_display.h modesetting: Implement a double-buffered shadow mode 2016-07-02 09:54:07 +02:00
dumb_bo.c modesetting: Include dix-config.h from dumb_bo.c 2015-05-12 08:02:11 -07:00
dumb_bo.h modesetting: Drop dumb_bo::map_count field and dead unmap code. 2014-12-11 11:26:19 -08:00
modesetting.man modesetting: Add more missing options to man page. 2015-08-13 00:36:12 +01:00
present.c modesetting: Clear drmmode->fb_id before unflipping 2016-06-17 11:38:13 +02:00
sh3224.c modesetting: Implement 32->24 bpp conversion in shadow update 2016-07-02 09:28:04 +02:00
sh3224.h modesetting: Implement 32->24 bpp conversion in shadow update 2016-07-02 09:28:04 +02:00
vblank.c modesetting: Use NotifyFd for drm event monitoring 2015-12-01 13:55:25 -05:00