diff options
Diffstat (limited to 'src/mesa/shader/slang/slang_emit.c')
-rw-r--r-- | src/mesa/shader/slang/slang_emit.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c index c6683720191..7804e192360 100644 --- a/src/mesa/shader/slang/slang_emit.c +++ b/src/mesa/shader/slang/slang_emit.c @@ -127,11 +127,7 @@ slang_ir_storage * _slang_new_ir_storage(enum register_file file, GLint index, GLint size) { slang_ir_storage *st; -#if USE_MEMPOOL st = (slang_ir_storage *) _slang_alloc(sizeof(slang_ir_storage)); -#else - st = (slang_ir_storage *) _mesa_calloc(sizeof(slang_ir_storage)); -#endif if (st) { st->File = file; st->Index = index; @@ -156,11 +152,7 @@ alloc_temp_storage(slang_emit_info *emitInfo, slang_ir_node *n, GLint size) if (!_slang_alloc_temp(emitInfo->vt, n->Store)) { slang_info_log_error(emitInfo->log, "Ran out of registers, too many temporaries"); -#if USE_MEMPOOL _slang_free(n->Store); -#else - _mesa_free(n->Store); -#endif n->Store = NULL; return GL_FALSE; } |