mesa: Change _mesa_exec_malloc argument type.
authorVinson Lee <vlee@freedesktop.org>
Sat, 28 Mar 2020 02:56:10 +0000 (19:56 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sat, 28 Mar 2020 20:14:42 +0000 (13:14 -0700)
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 <marek.olsak@amd.com>
Fixes: e5339fe4a47c ("Move compiler.h and imports.h/c from src/mesa/main into src/util")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4361>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4361>

src/mesa/main/execmem.c
src/mesa/main/execmem.h

index 3b08f42a3dd6056d3a7bd5c6aeb0efa44236c501..37a043a0b3a18703461f8c6ad93a8babff117f2d 100644 (file)
@@ -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 );
 }
index bc51a8c8411b6b0e817b3729972126d67cbcab68..f9479b9637912d69eda521a94942c31e0bb28baf 100644 (file)
@@ -28,7 +28,7 @@
 
 
 extern void *
-_mesa_exec_malloc(GLuint size);
+_mesa_exec_malloc(unsigned size);
 
 extern void
 _mesa_exec_free(void *addr);