svga: fix a crash happening before setting fragment shaders.
authorZack Rusin <zackr@vmware.com>
Wed, 1 Feb 2012 04:12:22 +0000 (23:12 -0500)
committerZack Rusin <zackr@vmware.com>
Wed, 1 Feb 2012 21:34:57 +0000 (16:34 -0500)
commitcff0eac702e0070d4d7f0e2ae5f785ec10597d4d
tree896a51b8d1c739dfeab5b1b3734970e295f75fb6
parent3279561e9ab3a6f25215b8e857493d2b9ae6bdd9
svga: fix a crash happening before setting fragment shaders.

In certain situations API's will call pipe->clear which doesn't
require fragment shader, but then we'd try to verify the pipeline
and assume fragment shader was always set. This was leading to
crash when API would just call simple clear's before anything else.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_state_need_swtnl.c