radeonsi: fail if importing a texture with incorrect last_level or samples
authorMarek Olšák <marek.olsak@amd.com>
Mon, 22 Jul 2019 22:07:06 +0000 (18:07 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 23 Jul 2019 19:08:27 +0000 (15:08 -0400)
commitee858871bd8f9d9ea7179c266f57ac3f1604eb02
tree6f44fa2201c72b128aff822332824a937b85aae0
parentf8b6c5a1a638e465d7c536a1204536175aeaf20f
radeonsi: fail if importing a texture with incorrect last_level or samples

v2: don't fail if the texture comes from an incompatible driver.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> (v1)
src/gallium/drivers/radeonsi/si_texture.c