radv: Fix output for sparse MRTs.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 13 Jun 2018 21:31:54 +0000 (23:31 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 14 Jun 2018 09:48:24 +0000 (11:48 +0200)
commit41dabdc47538fb7660f7063d9dd423473eaa2515
tree8d82294a8cd5617ede43163bd1e84ac8c03427c7
parent68dead112e710b261ad33604175d635dec6afd34
radv: Fix output for sparse MRTs.

We need to init the cb_shader_format correctly with the changed
col_format, so this moves the col_format adjustment to before the
adjustment to before the cb_shader_mask gets generated.

Fixes: 06d3c650980 "radv: fix a GPU hang when MRTs are sparse"
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106903
CC: 18.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_pipeline.c