draw: move type construction out of loop

We can create clip_ptr_type once instead of n times inside the loop.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
gbm: Support non-PCI devices

When probing non-PCI DRM devices, such as those found in a lot of SoCs,
GBM errors out because it expects the device to have an associated PCI
ID which can be used to lookup the driver name in a table.

This patch removes this restriction by using the driver name from the
drmVersion structure as a fallback if a device doesn't have an
associated PCI ID.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
mesa: OpenGL ES 2.0 does not require non-power-of-two textuing
st/texture: use 'stride' consistently
draw/fetch_shade_emit: remove unused fields
tegra: Gallium driver for NVIDIA Tegra

Add a stub Gallium driver for NVIDIA Tegra SoCs to serve as a basis for
future development. The driver contains enough stubs to allow Wayland's
reference compositor Weston to run, though without any actual output.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
tegra: Fill in some details

Implement DRM buffer object handling and add support for clearing a
buffer. This allows a very basic OpenGL ES program, calling glClear(),
to run.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
tegra: format clean-up
tegra: round up height to multiples of tile-size
tegra: use linear staging-textures
tegra: only align 2d-resources
tegra: implement fences
tegra: perform blits with gr2d
tegra: perform transfers with blits
tegra: refactor resource-filling to a separate function

This way we can reuse the code for other kinds of fills.
tegra: implement clear_render_target and clear_depth_stencil
tegra: clear multiple colorbuffers
more better clear
tegra: use util_clear for clearing
tegra: do not crash on NULL vertex-state object