From: Brian Paul Date: Fri, 12 Dec 2008 17:29:15 +0000 (-0700) Subject: mesa: use _slang_alloc() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b4019483dea406e997ae1c6b61b41cc49786c8ce;p=mesa.git mesa: use _slang_alloc() --- diff --git a/src/mesa/shader/slang/slang_compile_function.c b/src/mesa/shader/slang/slang_compile_function.c index ba65be58df6..c460627a417 100644 --- a/src/mesa/shader/slang/slang_compile_function.c +++ b/src/mesa/shader/slang/slang_compile_function.c @@ -70,7 +70,7 @@ slang_function * slang_function_new(slang_function_kind kind) { slang_function *fun = (slang_function *) - _mesa_malloc(sizeof(slang_function)); + _slang_alloc(sizeof(slang_function)); if (fun) { slang_function_construct(fun); fun->kind = kind; diff --git a/src/mesa/shader/slang/slang_typeinfo.c b/src/mesa/shader/slang/slang_typeinfo.c index 2006c7e35ec..5ee54c3a119 100644 --- a/src/mesa/shader/slang/slang_typeinfo.c +++ b/src/mesa/shader/slang/slang_typeinfo.c @@ -296,7 +296,7 @@ slang_type_specifier_new(slang_type_specifier_type type, struct slang_type_specifier_ *_array) { slang_type_specifier *spec = - (slang_type_specifier *) _mesa_malloc(sizeof(slang_type_specifier)); + (slang_type_specifier *) _slang_alloc(sizeof(slang_type_specifier)); if (spec) { spec->type = type; spec->_struct = _struct;