radeonsi: Fix build

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>

https://bugs.freedesktop.org/show_bug.cgi?id=70106
radeonsi/compute: Fix segfault caused by recent refactoring

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
gallium: add PIPE_CAP_MIXED_FRAMEBUFFER_SIZES

This CAP will determine whether ARB_framebuffer_object can be enabled.
The nv30 driver does not allow mixing swizzled and linear zsbuf/cbuf
textures.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
mesa/st: disable ARB_framebuffer_object when no driver support.

When PIPE_CAP_MIXED_FRAMEBUFFER_SIZES is not provided, parts of
ARB_framebuffer_object can't be supported, such as on NV30.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
nouveau_vieux: add AllocTextureImageBuffer implementation

This fixes issues where get_rt_format would see a 0 format because the
nouveau_surface had not been properly initialized. Fixes crash on
supertuxkart startup (which still fails due to out-of-vram issues).

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
mesa/st: create interface to verify fb format, reject bad fbs

Extract format parameters in st_validate_framebuffer and call the new
optional pipe->is_fb_format_supported function to check that parameters
are supported by the driver.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
gallium: add helper to use as a replacement for the MIXED_COLOR cap

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
i915: hook up is_fb_format_supported

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
r300: hook up is_fb_format_supported

Only do this in the !r500 case, same as how
PIPE_CAP_MIXED_COLORBUFFER_FORMATS is set.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
softpipe: hook up is_fb_format_supported

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
nv30: hook up is_fb_format_supported

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
gallium: remove PIPE_CAP_MIXED_COLORBUFFER_FORMATS

This is now completely handled by the new is_fb_format_supported
callback.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
nv30: make sure that cbufs and zsbuf have the same depth

This should finally fix RT_FORMAT errors due to weird fb configurations.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>