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

Author: Konstantin Seurer <[email protected]>
Date:   Thu May 11 19:03:11 2023 +0200

radv: Stop running constant folding during ray query lowering

Now that committed is an intrinsic index, there is no need for constant
folding.

Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22963>

---

 src/amd/vulkan/nir/radv_nir_lower_ray_queries.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/amd/vulkan/nir/radv_nir_lower_ray_queries.c 
b/src/amd/vulkan/nir/radv_nir_lower_ray_queries.c
index f4e1e6ff731..80e25fc6fd0 100644
--- a/src/amd/vulkan/nir/radv_nir_lower_ray_queries.c
+++ b/src/amd/vulkan/nir/radv_nir_lower_ray_queries.c
@@ -679,9 +679,6 @@ radv_nir_lower_ray_queries(struct nir_shader *shader, 
struct radv_device *device
    bool progress = false;
    struct hash_table *query_ht = _mesa_pointer_hash_table_create(NULL);
 
-   /* Run constant folding to collapse expressions that are required to be 
constant by the spec. */
-   NIR_PASS(progress, shader, nir_opt_constant_folding);
-
    nir_foreach_variable_in_list (var, &shader->variables) {
       if (!var->data.ray_query)
          continue;

Reply via email to