omap_exa.c: handle zero-size pixmaps in ModifyPixmapHeader

X will sometimes create an empty pixmap and then use ModifyPixmapHeader
to point it at PixData. We'll hit this path during the CreatePixmap call.

To avoid trying to allocate a zero-byte buffer and eventually erroring out,
just return true.

Fixes:

[     5.772] (EE) _CREATE_DUMB({height: 0x0, width: 0x0, bpp: 0x20, flags:

BUG=chrome-os-partner:13087
TEST=Browse some sites (incl. webgl) and verify Xorg.0.log is clean.

Change-Id: I8130cdde89ee0fadb3169a1878b085657cf14d52
Reviewed-on: https://gerrit.chromium.org/gerrit/31665
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Commit-Ready: Mandeep Singh Baines <msb@chromium.org>
Tested-by: Mandeep Singh Baines <msb@chromium.org>
1 file changed