softpipe: don't assert when creating surfaces with multiple layers
authorRoland Scheidegger <sroland@vmware.com>
Wed, 13 Mar 2013 20:19:20 +0000 (21:19 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 13 Mar 2013 23:21:56 +0000 (00:21 +0100)
commit81e728982da61f66c39a44b18460307425c22c1b
tree8e9b1bcc48bbca50b93712f860afb7161c4b30f3
parent48893156192ff2ffbfaf910dbf51f5f7a904c568
softpipe: don't assert when creating surfaces with multiple layers

We can't handle them yet, however we can safely just warn (we will
just render to first layer, which is fine since we can't handle
rendertarget system value neither).
Also make behavior more predictable with buffer surfaces
(it would sometimes hit bogus asserts because of the union in the surface,
instead create the surface but assert when trying to set a buffer
in the framebuffer).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/drivers/softpipe/sp_tile_cache.c