radeon: Fix flushing before writing a teximage's BO when !t->bo.
authorEric Anholt <eric@anholt.net>
Thu, 4 Aug 2011 01:29:36 +0000 (18:29 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 24 Aug 2011 17:43:20 +0000 (10:43 -0700)
commit4990e7e9fb6d64f5e4c23915767e5cea32c02965
treedbdb19bedb6be7dd56a4485ec0b8c2147b8a0e77
parent6dbad425bc423eb7db7c99aab161955c7b4cdc4c
radeon: Fix flushing before writing a teximage's BO when !t->bo.

Before, if we ended up here without a BO for our image, but did choose
a miptree that had active rendering in the command buffer, our
teximage data would jump ahead of the rendering using the old texture
contents.

This showed up as breakage in gen-teximage and friends in the
following commit.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/radeon/radeon_texture.c