Mesa (master): aco/ngg: Initialize exec mask for NGG VS and TES.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 7 11:44:57 UTC 2020


Module: Mesa
Branch: master
Commit: ec72c504c623c12ea870e451f2d08a482d219469
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ec72c504c623c12ea870e451f2d08a482d219469

Author: Timur Kristóf <timur.kristof at gmail.com>
Date:   Wed Apr  1 12:14:00 2020 +0200

aco/ngg: Initialize exec mask for NGG VS and TES.

They behave like merged ESGS shaders, so the exec mask needs
to be manually initialized for these NGG shaders too.

Signed-off-by: Timur Kristóf <timur.kristof at gmail.com>
Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3576>

---

 src/amd/compiler/aco_insert_exec_mask.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/compiler/aco_insert_exec_mask.cpp b/src/amd/compiler/aco_insert_exec_mask.cpp
index 909c1735453..fe0dc54ccca 100644
--- a/src/amd/compiler/aco_insert_exec_mask.cpp
+++ b/src/amd/compiler/aco_insert_exec_mask.cpp
@@ -377,7 +377,7 @@ unsigned add_coupling_code(exec_ctx& ctx, Block* block,
       bld.insert(std::move(startpgm));
 
       /* exec seems to need to be manually initialized with combined shaders */
-      if (util_bitcount(ctx.program->stage & sw_mask) > 1) {
+      if (util_bitcount(ctx.program->stage & sw_mask) > 1 || (ctx.program->stage & hw_ngg_gs)) {
          bld.sop1(Builder::s_mov, bld.exec(Definition(exec_mask)), bld.lm == s2 ? Operand(UINT64_MAX) : Operand(UINT32_MAX));
          instructions[0]->definitions.pop_back();
       }



More information about the mesa-commit mailing list