mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
radeon: avoid segfault on 3D textures.
This is a candidate for 7.9 and 7.10
This commit is contained in:
parent
d3d2be2de1
commit
76366ee06b
1 changed files with 3 additions and 0 deletions
|
|
@ -2091,6 +2091,9 @@ static GLboolean r100ValidateBuffers(struct gl_context *ctx)
|
|||
continue;
|
||||
|
||||
t = rmesa->state.texture.unit[i].texobj;
|
||||
|
||||
if (!t)
|
||||
continue;
|
||||
if (t->image_override && t->bo)
|
||||
radeon_cs_space_add_persistent_bo(rmesa->radeon.cmdbuf.cs, t->bo,
|
||||
RADEON_GEM_DOMAIN_GTT | RADEON_GEM_DOMAIN_VRAM, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue