summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2020-03-27 19:56:10 -0700
committerVinson Lee <[email protected]>2020-03-28 13:14:42 -0700
commit7df75203052fa8a8f2fbd603a4c7553752c57b0f (patch)
tree96b2943000c5e74540d8d659ba1f716a45a42007 /src/mesa/main
parentfcd3377cfe23e419b9235424cef9db4792fac80b (diff)
mesa: Change _mesa_exec_malloc argument type.
Fix build error. In file included from ../src/mesa/x86/rtasm/x86sse.c:7:0: ../src/mesa/main/execmem.h:31:19: error: unknown type name ‘GLuint’; did you mean ‘uint’? _mesa_exec_malloc(GLuint size); ^~~~~~ uint Suggested-by: Marek Olšák <[email protected]> Fixes: e5339fe4a47c ("Move compiler.h and imports.h/c from src/mesa/main into src/util") Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4361> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4361>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/execmem.c4
-rw-r--r--src/mesa/main/execmem.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/execmem.c b/src/mesa/main/execmem.c
index 3b08f42a3dd..37a043a0b3a 100644
--- a/src/mesa/main/execmem.c
+++ b/src/mesa/main/execmem.c
@@ -90,7 +90,7 @@ init_heap(void)
void *
-_mesa_exec_malloc(GLuint size)
+_mesa_exec_malloc(unsigned size)
{
struct mem_block *block = NULL;
void *addr = NULL;
@@ -140,7 +140,7 @@ _mesa_exec_free(void *addr)
*/
void *
-_mesa_exec_malloc(GLuint size)
+_mesa_exec_malloc(unsigned size)
{
return malloc( size );
}
diff --git a/src/mesa/main/execmem.h b/src/mesa/main/execmem.h
index bc51a8c8411..f9479b96379 100644
--- a/src/mesa/main/execmem.h
+++ b/src/mesa/main/execmem.h
@@ -28,7 +28,7 @@
extern void *
-_mesa_exec_malloc(GLuint size);
+_mesa_exec_malloc(unsigned size);
extern void
_mesa_exec_free(void *addr);