diff options
author | Bas Nieuwenhuizen <[email protected]> | 2019-06-01 20:54:35 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-08-12 23:00:24 +0200 |
commit | 5444d3e0c2bceafb1be7e2c3f5afa17415a08e9e (patch) | |
tree | 20e732629e6ad24e91a01c3d8fa9ecfd7da812cd /src/amd/vulkan/radv_pipeline.c | |
parent | 739a2880f520a1ecd11a3fec8c3a38398b6dd1ce (diff) |
radv: Use string for nir dumping.
Reviewed-by: Dave Airlie <[email protected]>
Allows us to easily dump all nir shaders for combined variants in
vega and simplifies ownership.
Diffstat (limited to 'src/amd/vulkan/radv_pipeline.c')
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 8e56e2cbd79..d297a4e078b 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -2660,8 +2660,7 @@ void radv_create_shaders(struct radv_pipeline *pipeline, for (int i = 0; i < MESA_SHADER_STAGES; ++i) { free(binaries[i]); if (nir[i]) { - if (!pipeline->device->keep_shader_info) - ralloc_free(nir[i]); + ralloc_free(nir[i]); if (radv_can_dump_shader_stats(device, modules[i])) radv_shader_dump_stats(device, |