diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2019-01-09 08:00:00 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2019-01-28 14:47:55 +0100 |
commit | ba4ef498fd1f66f81aaffc3dac504044b2ad7cc3 (patch) | |
tree | 43bf0021026a441d22c33396e08c40ad4d9165a0 /src | |
parent | d31e8e77e1453c26a02f24b26d96b4660d29e1df (diff) |
vmwgfx: Don't exceed the device command size limit v3
With a huge number of DMA clip rects we could exceed the device command
buffer command size limit. Fix this by sending multiple DMA commands
when we exceed the limit.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com> #v1
Diffstat (limited to 'src')
-rw-r--r-- | src/svga_reg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/svga_reg.h b/src/svga_reg.h index 0e1aa17..4aee52f 100644 --- a/src/svga_reg.h +++ b/src/svga_reg.h @@ -302,6 +302,7 @@ struct SVGAGuestPtr { uint32 offset; } SVGAGuestPtr; +#define SVGA_CB_MAX_COMMAND_SIZE (32 * 1024) /* 32 KB */ /* * SVGAGMRImageFormat -- |