gallium/util: Remove the EMBEDDED_DEVICE macro because nobody use it
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7641 Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Jose Fonseca <jfonseca@vmware.com> Acked-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19552>
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
#include "translate.h"
|
||||
|
||||
|
||||
#if (defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)) && !defined(EMBEDDED_DEVICE)
|
||||
#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
|
||||
|
||||
#include "rtasm/rtasm_x86sse.h"
|
||||
|
||||
|
||||
@@ -49,12 +49,6 @@
|
||||
#include "lp_screen.h"
|
||||
#include "lp_fence.h"
|
||||
|
||||
/* This is only safe if there's just one concurrent context */
|
||||
#ifdef EMBEDDED_DEVICE
|
||||
#define USE_GLOBAL_LLVM_CONTEXT
|
||||
#endif
|
||||
|
||||
|
||||
static void
|
||||
llvmpipe_destroy(struct pipe_context *pipe)
|
||||
{
|
||||
|
||||
@@ -1096,9 +1096,6 @@ llvmpipe_create_screen(struct sw_winsys *winsys)
|
||||
screen->use_tgsi = (LP_DEBUG & DEBUG_TGSI_IR);
|
||||
screen->num_threads = util_get_cpu_caps()->nr_cpus > 1
|
||||
? util_get_cpu_caps()->nr_cpus : 0;
|
||||
#ifdef EMBEDDED_DEVICE
|
||||
screen->num_threads = MIN2(screen->num_threads, 2);
|
||||
#endif
|
||||
screen->num_threads = debug_get_num_option("LP_NUM_THREADS",
|
||||
screen->num_threads);
|
||||
screen->num_threads = MIN2(screen->num_threads, LP_MAX_THREADS);
|
||||
|
||||
@@ -34,41 +34,6 @@
|
||||
#ifndef _OS_MEMORY_H_
|
||||
#define _OS_MEMORY_H_
|
||||
|
||||
#if defined(EMBEDDED_DEVICE)
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void *
|
||||
os_malloc(size_t size);
|
||||
|
||||
void *
|
||||
os_calloc(size_t count, size_t size);
|
||||
|
||||
void
|
||||
os_free(void *ptr);
|
||||
|
||||
void *
|
||||
os_realloc(void *ptr, size_t old_size, size_t new_size);
|
||||
|
||||
void *
|
||||
os_malloc_aligned(size_t size, size_t alignment);
|
||||
|
||||
void
|
||||
os_free_aligned(void *ptr);
|
||||
|
||||
void *
|
||||
os_realloc_aligned(void *ptr, size_t oldsize, size_t newsize, size_t alignemnt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
# include "os_memory_stdc.h"
|
||||
|
||||
#endif
|
||||
#include "os_memory_stdc.h"
|
||||
|
||||
#endif /* _OS_MEMORY_H_ */
|
||||
|
||||
@@ -201,8 +201,6 @@ os_get_android_option(const char *name)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#if !defined(EMBEDDED_DEVICE)
|
||||
const char *
|
||||
os_get_option(const char *name)
|
||||
{
|
||||
@@ -214,7 +212,6 @@ os_get_option(const char *name)
|
||||
#endif
|
||||
return opt;
|
||||
}
|
||||
#endif /* !EMBEDDED_DEVICE */
|
||||
|
||||
/**
|
||||
* Return the size of the total physical memory.
|
||||
|
||||
@@ -46,7 +46,7 @@ void
|
||||
_debug_vprintf(const char *format, va_list ap)
|
||||
{
|
||||
static char buf[4096] = {'\0'};
|
||||
#if DETECT_OS_WINDOWS || defined(EMBEDDED_DEVICE)
|
||||
#if DETECT_OS_WINDOWS
|
||||
/* We buffer until we find a newline. */
|
||||
size_t len = strlen(buf);
|
||||
int ret = vsnprintf(buf + len, sizeof(buf) - len, format, ap);
|
||||
|
||||
Reference in New Issue
Block a user