mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-05 21:00:40 +01:00
r600: clear compressed flags in image state on unbind.
If we aren't binding an image, clear the compressed flags. This fixes a segfault seen with an apitrace. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104331 Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
999f1cd5c6
commit
a1e18e87c7
1 changed files with 2 additions and 0 deletions
|
|
@ -4071,6 +4071,8 @@ static void evergreen_set_shader_images(struct pipe_context *ctx,
|
|||
if (!images || !images[idx].resource) {
|
||||
pipe_resource_reference((struct pipe_resource **)&rview->base.resource, NULL);
|
||||
istate->enabled_mask &= ~(1 << i);
|
||||
istate->compressed_colortex_mask &= ~(1 << i);
|
||||
istate->compressed_depthtex_mask &= ~(1 << i);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue