diff options
author | Jason Ekstrand <[email protected]> | 2019-06-04 17:50:22 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-06-05 20:07:28 +0000 |
commit | fe2fc30cb559f7ef99c07bd219c057b011242cb4 (patch) | |
tree | 84686069b2d5afded4df1c14f2d777462a28bfd7 /src/compiler/nir/nir.h | |
parent | 9eba6d9a880558c89a72cbafd873d4fe1247928d (diff) |
nir: Don't replace the nir_shader when NIR_TEST_SERIALIZE=1
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108957
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 12be397ff19..7930e164acb 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -2920,7 +2920,7 @@ nir_variable *nir_variable_clone(const nir_variable *c, nir_shader *shader); void nir_shader_replace(nir_shader *dest, nir_shader *src); -nir_shader *nir_shader_serialize_deserialize(void *mem_ctx, nir_shader *s); +void nir_shader_serialize_deserialize(nir_shader *s); #ifndef NDEBUG void nir_validate_shader(nir_shader *shader, const char *when); @@ -2995,8 +2995,7 @@ static inline bool should_print_nir(void) { return false; } nir_shader_replace(nir, clone); \ } \ if (should_serialize_deserialize_nir()) { \ - void *mem_ctx = ralloc_parent(nir); \ - nir = nir_shader_serialize_deserialize(mem_ctx, nir); \ + nir_shader_serialize_deserialize(nir); \ } \ } while (0) |