intel/fs: Fix memory corruption when compiling a CS
authorOscar Blumberg <carnaval@12-10e.me>
Sat, 26 Jan 2019 15:47:42 +0000 (16:47 +0100)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 1 Feb 2019 18:53:33 +0000 (10:53 -0800)
commitfea5b8e5ad5042725cb52d6d37256b9185115502
treef7f330ff091a2fee925c2dea1e000f3f65be8d04
parentab940b0d972d9825a2d0ab26a7128ea61ba527b2
intel/fs: Fix memory corruption when compiling a CS

Missing check for shader stage in the fs_visitor would corrupt the
cs_prog_data.push information and trigger crashes / corruption later
when uploading the CS state.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_fs_nir.cpp