nouveau: return error from pushbuf_validate

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
nouveau: add a way to override single pushbuffer memory limits

Currently single pushbuffer can take up to 80% of VRAM and 80% of GART.
As this value seems to be arbitrary (and user may need to set it differently)
this patch adds support for 2 environment variables:
NOUVEAU_LIBDRM_VRAM_LIMIT_PERCENT (default 80)
NOUVEAU_LIBDRM_GART_LIMIT_PERCENT (default 80)
which will let users override pushbuffer VRAM/GART limits.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
intel_chipset: Use parens around macro arguments

Protect the macro argument evaluations with parens.

This is already touching most lines, so while at it, fix up all white
space to uniform style throughout the file.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
intel_chipset: Fix up VLV confusion

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
configure.ac: bump version to 2.4.43 for release

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Remove unused header xf86mm.h.

it's not even shipped in the tarball.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
makefiles: Add missing headers.

I even compile time tested this on a panda with make dist!

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
drm: Fix error message in drmWaitVBlank

If clock_gettime did fail, it would return -1 and set errno.
What we really want to strerror() is the errno.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
intel: Fix Haswell CRW PCI IDs.

The second digit was off by one, which meant we accidentally treated
GT(n) as GT(n-1).  This also meant no support for GT1 at all.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
tests: Include string.h for strlen() and memset()

The setversion and getversion tests use these functions so make sure
they are included to avoid compiler warnings.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
libdrm: Add NVIDIA Tegra support

Add the libdrm_tegra helper library to encapsulate Tegra-specific
interfaces to the DRM.

Furthermore, Tegra is added to the list of supported chips in the
modetest and vbltest programs.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
WIP: libdrm/tegra: Add host1x job and pushbuffer functions

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>