r300g: fix assertion failure in emit_dsa_state

Broken by 8ed6b1400bc8a78f46340f41aaf2e88b24c23267.
nouveau: improve buffer transfers

Save double memcpy on uploads to VRAM in most cases.
Properly handle FLUSH_EXPLICIT.
Reallocate on DISCARD_WHOLE_RESOURCE to avoid sync.
nouveau: increase max order of suballocated buffers by 1

This is really a hack to make TF2 (considerably, up to 20 -> 70 fps
at low res) faster.
nvc0: fix out of bounds writes for unaligned sizes in push_data
nv50/ir: wrap assertion using typeid in #ifndef NDEBUG

Note: this is a candidate for the 9.0 stable branch.
nvc0: add missing call to map edge flag in push_vbo

Note: this is a candidate for the 9.0 stable branch.
nvc0: use correct resource target to select blit shader
nvc0: catch too high GENERIC indices to prevent GRAPH traps
winsys/radeon: bump the size of relocation hashlist

This should reduce the number of hash collisions in ETQW.
automake: Convert Gallium target and winsys
gallium: Add common automake include file

v2: Matt Turner <mattst88@gmail.com>
    Remove ARCH_FLAGS/OPT_FLAGS

v3: Johannes Obermayr <johannesobermayr@gmx.de>
    Add -I$(top_srcdir)/include to GALLIUM_CFLAGS
r300g: Use gallium automake include file

[mattst88] v2: Remove ARCH_FLAGS/OPT_FLAGS
r300g: Build a libtool archive
r300g: Link ralloc.c and register_allocate.c into separate library
radeon/winsys: Convert to automake
trace: Convert to automake
libgallium: Convert to automake
r600g: Use gallium automake include file
i915g: Convert to automake
i915/winsys/drm: Convert to automake