mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
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:
parent
886019125e
commit
fb9a133071
1 changed files with 8 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue