OSDN Git Service

softpipe: fix out of bounds quad rasterization bug
authorBrian Paul <brianp@vmware.com>
Tue, 16 Jun 2009 21:41:49 +0000 (15:41 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 16 Jun 2009 21:41:49 +0000 (15:41 -0600)
commit742ba084068b6856e94283a9c5fe3b39d48f64cb
tree3692aceeaf80211e49602086a4f25626f2f14729
parent3e48dd04456aaf2d42dfa7f3a3c99a95a5986eb6
softpipe: fix out of bounds quad rasterization bug

For some triangles we can generate quads which lie just outside the
surface bounds.  Just check the quad's mask before trying to emit/process
the quad.

Fixes failed assertion in Lightsmark.
src/gallium/drivers/softpipe/sp_setup.c