radeonsi: fix culldist_writemask in nir path
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 31 Oct 2017 03:19:18 +0000 (14:19 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 31 Oct 2017 22:41:11 +0000 (09:41 +1100)
commite80bbd6f52341cbf9363f3c0c8b7ad3be851b1e6
tree4c53626f3bf4bad4494d459c6321cf6cc7ba8735
parentb697ece10aa041b8653eb184d73dcf5b846729a3
radeonsi: fix culldist_writemask in nir path

The shared si_create_shader_selector() code already offsets the mask.

Fixes the following piglit tests:

arb_cull_distance/clip-cull-3.shader_test
arb_cull_distance/clip-cull-4.shader_test

Fixes: 29d7bdd179bb (radeonsi: scan NIR shaders to obtain required info)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_nir.c