r600/sfn: set info about using helper_invocation to skip sb
authorGert Wollny <gert.wollny@collabora.com>
Fri, 26 Feb 2021 15:33:41 +0000 (16:33 +0100)
committerGert Wollny <gert.wollny@collabora.com>
Tue, 2 Mar 2021 17:46:17 +0000 (18:46 +0100)
sb can't handle helper invocations, so skip sb when it is used.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9330>

src/gallium/drivers/r600/sfn/sfn_shader_fragment.cpp

index 544e743..9597b21 100644 (file)
@@ -270,6 +270,7 @@ bool FragmentShaderFromNir::scan_sysvalue_access(nir_instr *instr)
          break;
       case nir_intrinsic_load_helper_invocation:
          m_sv_values.set(es_helper_invocation);
+         sh_info().uses_helper_invocation = true;
          break;
       case nir_intrinsic_load_input:
          return process_load_input(ii, false);