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

Author: Samuel Pitoiset <[email protected]>
Date:   Mon Apr  3 10:46:03 2023 +0200

radv: remove dead code in radv_pipeline_get_nir()

We either import the NIR or the assembly, so this was never reached.

Signed-off-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22264>

---

 src/amd/vulkan/radv_pipeline.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index a75c9f2f58f..81126c800be 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -2765,10 +2765,6 @@ radv_pipeline_get_nir(struct radv_device *device, struct 
radv_graphics_pipeline
       if (!stages[s].entrypoint)
          continue;
 
-      /* Do not try to get the NIR when we already have the assembly. */
-      if (pipeline->base.shaders[s])
-         continue;
-
       int64_t stage_start = os_time_get_nano();
 
       assert(retain_shaders || pipeline->base.shaders[s] == NULL);

Reply via email to