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:
Dave Airlie 2017-12-19 05:36:53 +00:00
parent 999f1cd5c6
commit a1e18e87c7

View file

@ -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;
}