radv: revert Metro Exodus workaround which was moved to common code

This reverts commit 4397c166c0.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21281>
This commit is contained in:
Tapani Pälli
2023-02-15 11:53:01 +02:00
committed by Marge Bot
parent effee24951
commit 0d1c759f4e
-6
View File
@@ -775,12 +775,6 @@ radv_shader_spirv_to_nir(struct radv_device *device, const struct radv_pipeline_
&device->physical_device->nir_options[stage->stage]);
nir->info.internal |= is_internal;
assert(nir->info.stage == stage->stage);
/* Work around applications that declare shader_call_data variables inside ray generation
* shaders. */
if (nir->info.stage == MESA_SHADER_RAYGEN)
NIR_PASS(_, nir, nir_remove_dead_variables, nir_var_shader_call_data, NULL);
nir_validate_shader(nir, "after spirv_to_nir");
free(spec_entries);