summaryrefslogtreecommitdiff
path: root/src/common_compat.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2019-01-09 08:27:16 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2019-01-28 14:47:55 +0100
commit86189966c3dee0e0c10dd4926cebbe478129c6f0 (patch)
treec7d5274a4b9230bc2d96d688e5e3728643fff8a8 /src/common_compat.h
parentba4ef498fd1f66f81aaffc3dac504044b2ad7cc3 (diff)
vmwgfx: Limit the number of cliprects in a drm dirtyfb command v3
The drm dirtyfb command would error if the number of cliprects were larger than DRM_MODE_FB_DIRTY_MAX_CLIPS. If that number is exceeded, split the command up. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> #v2 Reviewed-by: Deepak Rawat <drawat@vmware.com> #v1
Diffstat (limited to 'src/common_compat.h')
-rw-r--r--src/common_compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common_compat.h b/src/common_compat.h
index 4efe350..fa6adc2 100644
--- a/src/common_compat.h
+++ b/src/common_compat.h
@@ -37,5 +37,9 @@ xf86SaveModeContents(DisplayModePtr intern, const DisplayModeRec *mode)
#define fbGetRotatedPixmap(_pGC) NULL
#endif
+#ifndef DRM_MODE_FB_DIRTY_MAX_CLIPS
+#define DRM_MODE_FB_DIRTY_MAX_CLIPS 256
+#endif
+
#endif