mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
radeon: need to flush cs when moving images between mipmap trees
This commit is contained in:
parent
2348f6d490
commit
e5159996a4
1 changed files with 4 additions and 0 deletions
|
|
@ -594,6 +594,10 @@ int radeon_validate_texture_miptree(GLcontext * ctx, struct gl_texture_object *t
|
|||
if (RADEON_DEBUG & RADEON_TEXTURE) {
|
||||
fprintf(stderr, "MIGRATING\n");
|
||||
}
|
||||
struct radeon_bo *src_bo = (img->mt) ? img->mt->bo : img->bo;
|
||||
if (src_bo && radeon_bo_is_referenced_by_cs(src_bo, rmesa->cmdbuf.cs)) {
|
||||
radeon_firevertices(rmesa);
|
||||
}
|
||||
migrate_image_to_miptree(dst_miptree, img, face, radeon_gl_level_to_miptree_level(texObj, level));
|
||||
} else if (RADEON_DEBUG & RADEON_TEXTURE) {
|
||||
fprintf(stderr, "OK\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue