[Spice-devel] [PATCH] qxl_image.c: fix compilation break
Marc-André Lureau
marcandre.lureau at gmail.com
Wed Jul 9 06:49:17 PDT 2014
ack
On Wed, Jun 25, 2014 at 1:54 PM, Alon Levy <alevy at redhat.com> wrote:
> Since 3d511c30206bd8c9a207c436186a03af0bb02962 Xspice building is broken
> due to undefined MAX_RELOCS when not building with XF86DRM_MODE.
> ---
> src/qxl_image.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/qxl_image.c b/src/qxl_image.c
> index eb66b63..8927fd4 100644
> --- a/src/qxl_image.c
> +++ b/src/qxl_image.c
> @@ -159,6 +159,7 @@ qxl_image_create (qxl_screen_t *qxl, const uint8_t
> *data,
>
> chunk_size = MAX (512 * 512, dest_stride);
>
> +#ifdef XF86DRM_MODE
> /* ensure we will not create too many pieces and overflow
> * the command buffer (MAX_RELOCS). if so, increase the
> chunk_size.
> * each loop creates at least 2 cmd buffer entries, and
> @@ -170,6 +171,7 @@ qxl_image_create (qxl_screen_t *qxl, const uint8_t
> *data,
> ErrorF ("adjusted chunk_size to %d\n", chunk_size);
> #endif
> }
> +#endif
>
> while (h)
> {
> --
> 1.9.3
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>
--
Marc-André Lureau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140709/76ef14a3/attachment.html>
More information about the Spice-devel
mailing list