radeon: fix some wine d3d9 tests

Need to flush command stream before mapping texture image
that is referenced by current cs.

This is a manual application of
ba03a0b5ba, which could not be
cherry-picked directly due to refactoring.

Acked-by: Maciej Cencora <m.cencora@gmail.com>
This commit is contained in:
Tom Fogal 2010-08-03 12:33:30 -06:00
parent 886019125e
commit fb9a133071

View file

@ -1016,7 +1016,15 @@ radeon_get_tex_image(GLcontext * ctx, GLenum target, GLint level,
__func__, ctx, texObj, image, compressed);
if (image->mt) {
radeonContextPtr rmesa = RADEON_CONTEXT(ctx);
/* Map the texture image read-only */
if (radeon_bo_is_referenced_by_cs(image->mt->bo, rmesa->cmdbuf.cs)) {
radeon_print(RADEON_TEXTURE, RADEON_VERBOSE,
"%s: called for texture that is queued for GPU processing\n",
__func__);
radeon_firevertices(rmesa);
}
radeon_teximage_map(image, GL_FALSE);
} else {
/* Image hasn't been uploaded to a miptree yet */