llvmpipe: don't assert on illegal surface creation.
authorRoland Scheidegger <sroland@vmware.com>
Fri, 1 Mar 2013 14:32:03 +0000 (15:32 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 2 Mar 2013 01:54:31 +0000 (02:54 +0100)
commit2ef13e7c557eb5b5d017e25ff7c15b2912996c6f
tree6e8e103d3b84de4f2b869f273aa8e97ac577227f
parent4c12276607e6a95a9a0c5997f018605e86aa5843
llvmpipe: don't assert on illegal surface creation.

Since c8eb2d0e829d0d2aea6a982620da0d3cfb5982e2 llvmpipe checks if it's
actually legal to create a surface. The opengl state tracker doesn't quite
obey this so for now just warn instead of assert.
Also warn instead of disabled assert when creating sampler views
(same reasoning).

Addresses https://bugs.freedesktop.org/show_bug.cgi?id=61647.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_state_sampler.c
src/gallium/drivers/llvmpipe/lp_texture.c