summaryrefslogtreecommitdiff
path: root/src/nv_shadow.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2013-11-18 21:14:42 +0100
committerMatthieu Herrb <matthieu@herrb.eu>2015-12-21 16:45:08 +0100
commit38d888e0f377bf28373b55c3250c39ab5f8c95b3 (patch)
tree1aea6656066453ae23e27a51b42fc46270a47912 /src/nv_shadow.c
parent0b6619fec39fada995646fb95bb25e72d3c9a491 (diff)
Fix shadow framebuffer implementation.
Makes it possible to run the nv driver without XAA on cards where EXA is not supported. Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/nv_shadow.c')
-rw-r--r--src/nv_shadow.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nv_shadow.c b/src/nv_shadow.c
index 3946448..58db331 100644
--- a/src/nv_shadow.c
+++ b/src/nv_shadow.c
@@ -13,6 +13,17 @@
#include "shadowfb.h"
#include "servermd.h"
+void
+NVShadowUpdate (ScreenPtr pScreen, shadowBufPtr pBuf)
+{
+ RegionPtr damage = DamageRegion(pBuf->pDamage);
+ ScrnInfoPtr pScrn;
+ pScrn = xf86ScreenToScrn(pScreen);
+
+ (NVPTR(pScrn))->refreshArea (pScrn, REGION_NUM_RECTS(damage),
+ REGION_RECTS(damage));
+}
+
void
NVRefreshArea(ScrnInfoPtr pScrn, int num, BoxPtr pbox)