summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/slang/slang_compile_function.c2
-rw-r--r--src/mesa/shader/slang/slang_typeinfo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_compile_function.c b/src/mesa/shader/slang/slang_compile_function.c
index ba65be58df..c460627a41 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 2006c7e35e..5ee54c3a11 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;