radeonsi: add assertions to prevent creation of invalid surfaces
authorMarek Olšák <maraeo@gmail.com>
Tue, 19 Feb 2013 16:43:08 +0000 (17:43 +0100)
committerMichel Dänzer <michel@daenzer.net>
Wed, 20 Feb 2013 11:30:32 +0000 (12:30 +0100)
commita84c4edeede12a1275a37a61408f578481bd4355
tree4aa651510fe1fd37fb71a03ff0ec5cda9a7f1cf2
parentc4faab63c45aad579ef324fcc076c88a7cebbef6
radeonsi: add assertions to prevent creation of invalid surfaces

[ Cherry-picked from r600g commit ef11ed61a0414d0405c3faf7f48fa3f1d083f82e ]

NOTE: This is a candidate for the 9.1 branch.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeonsi/r600_blit.c
src/gallium/drivers/radeonsi/r600_texture.c
src/gallium/drivers/radeonsi/radeonsi_pipe.h