svga: add texture size/levels sanity check code in svga_texture_create()
authorBrian Paul <brianp@vmware.com>
Tue, 27 Jun 2017 15:51:25 +0000 (09:51 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 30 Jun 2017 19:37:10 +0000 (13:37 -0600)
commitf215f42f1b325c7e15d03b1cc0c889a4b8f84cdd
treecc3133b7cf11fbec5d7d821da3a98d9766887561
parent95d5c48f68b598cfa6db25f44aac52b3e11403cc
svga: add texture size/levels sanity check code in svga_texture_create()

The state tracker should never ask us to create a texture with invalid
dimensions / mipmap levels.  Do some assertions to check that.

No Piglit regressions.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_resource_texture.c