radeonsi: don't invoke DCC decompression in update_all_texture_descriptors
authorMarek Olšák <marek.olsak@amd.com>
Sun, 29 Jan 2017 22:59:59 +0000 (23:59 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 30 Jan 2017 16:45:29 +0000 (17:45 +0100)
commita0740d59aa97a08d89998cb57138e8217a331af6
tree4c55e41fda29e0c8bd9e883bc4d8a538f6392f9f
parentf8dd2f5bacd75fcbdf5270843438fb57bf202c31
radeonsi: don't invoke DCC decompression in update_all_texture_descriptors

This fixes a bug uncovered by the 17-part patch series, specifically:
  "gallium/radeon: merge dirty_fb_counter and dirty_tex_descriptor_counter"

If dirty_tex_counter has been updated and set_shader_image invokes DCC
decompression, the DCC decompression itself checks the counter and updates
descriptors, which in turn invokes the same DCC decompression. The blitter
can't handle the recursion and the driver eventually crashes.

Cc: 17.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_descriptors.c