softpipe: Fix softpipe_is_texture_referenced.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 15 Jun 2009 17:42:13 +0000 (18:42 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 15 Jun 2009 17:42:13 +0000 (18:42 +0100)
commit5d0cf9ebb41c05b0c6fa6914ccbb1e1871e27099
tree6adb1df3ec3d7beaeaab8d94ba44f5c4b9a9dda9
parent0e1abced56131c56717c4f317c33ac6e3fab4ff7
softpipe: Fix softpipe_is_texture_referenced.

Render results are only visible when the render cache is flushed.
softpipe_is_texture_referenced must reflect that or transfers to/from the
textures bound in the framebuffer won't be proceeded of the necessary
flush, causing transfer data to be outdated/clobbered.

This fixes conform drawpix test with softpipe.
src/gallium/drivers/softpipe/sp_context.c
src/gallium/drivers/softpipe/sp_context.h
src/gallium/drivers/softpipe/sp_draw_arrays.c
src/gallium/drivers/softpipe/sp_flush.c