radeonsi: Reorder checks in si_check_render_feedback
authorJan Vesely <jan.vesely@rutgers.edu>
Thu, 5 Apr 2018 20:34:00 +0000 (16:34 -0400)
committerJan Vesely <jan.vesely@rutgers.edu>
Thu, 5 Apr 2018 21:11:18 +0000 (17:11 -0400)
commit2406e8848eb0bb7223763efeacbbc48ae8d2f251
tree005c3f217e8aab44f7673354acc5c509f1f0e629
parentcc41603d6da4552f0aaf32325a8f019c44c3d9c8
radeonsi: Reorder checks in si_check_render_feedback

si_get_total_colormask accesses NULL pointer on compute shaders
Fixes crashes on clover
Fixes: 0669dca9c00261849cee14d69fdea0a5e323c7f7 ("radeonsi: skip DCC render feedback checking if color writes are disabled")
CC: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_blit.c