Module: Mesa
Branch: main
Commit: 069f2e27f0ecbc9f8cf64a7dd82b425a4d197e8f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=069f2e27f0ecbc9f8cf64a7dd82b425a4d197e8f

Author: Samuel Pitoiset <[email protected]>
Date:   Fri Sep 24 12:06:44 2021 +0200

radv/llvm: stop using vs_common_out.as_ngg_passthrough

Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timur Kristóf <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13025>

---

 src/amd/vulkan/radv_nir_to_llvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/amd/vulkan/radv_nir_to_llvm.c 
b/src/amd/vulkan/radv_nir_to_llvm.c
index a9d2415b590..12b1f1702fd 100644
--- a/src/amd/vulkan/radv_nir_to_llvm.c
+++ b/src/amd/vulkan/radv_nir_to_llvm.c
@@ -1649,7 +1649,7 @@ handle_ngg_outputs_post_2(struct radv_shader_context *ctx)
    {
       struct ac_ngg_prim prim = {0};
 
-      if (ctx->args->options->key.vs_common_out.as_ngg_passthrough) {
+      if (ctx->args->shader_info->is_ngg_passthrough) {
          prim.passthrough = ac_get_arg(&ctx->ac, 
ctx->args->ac.gs_vtx_offset[0]);
       } else {
          prim.num_vertices = num_vertices;
@@ -2464,7 +2464,7 @@ ac_translate_nir_to_llvm(struct ac_llvm_compiler 
*ac_llvm, struct nir_shader *co
        * Add an extra dword per vertex to ensure an odd stride, which
        * avoids bank conflicts for SoA accesses.
        */
-      if (!args->options->key.vs_common_out.as_ngg_passthrough)
+      if (!args->shader_info->is_ngg_passthrough)
          declare_esgs_ring(&ctx);
 
       /* GFX10 hang workaround - there needs to be an s_barrier before 
gs_alloc_req always */

Reply via email to