OSDN Git Service

softpipe: Grab a ref when the fb is set.
authorYounes Manton <younes.m@gmail.com>
Sun, 27 Sep 2009 14:56:42 +0000 (10:56 -0400)
committerYounes Manton <younes.m@gmail.com>
Sun, 27 Sep 2009 14:56:42 +0000 (10:56 -0400)
commita77226071f6814a53358a5d6caff685889d0e4ec
tree983667c154d16618af9237bc5f9ce2c13fa2c743
parentbcca927562c1e2e38e649f2e70a695ddafa4ef2c
softpipe: Grab a ref when the fb is set.

Nasty bug when the surface is freed and another is allocated right on
top of it. The next time we set the fb state SP thinks it's the same
surface and doesn't flush, and when the flush eventually happens the
surface belongs to a completely different texture.
src/gallium/drivers/softpipe/sp_context.c
src/gallium/drivers/softpipe/sp_state_surface.c