This is currently broken hard, because this code is being used in more
places that it used to be, and fixing that is prohibitively hard right
now.
This is far from ideal, as it leaves the same inconsistency in the
EMBEDDED_DEVICE code-path. But that only used by VMWare, so it's
probably better if they fix it, as they know their requirements better
than we do.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2911
Fixes: 76f79db3f5d ("util: stop including files from mesa/main")
Acked-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4919>
stw_dev = &stw_dev_storage;
memset(stw_dev, 0, sizeof(*stw_dev));
stw_dev = &stw_dev_storage;
memset(stw_dev, 0, sizeof(*stw_dev));
-#ifdef DEBUG
- stw_dev->memdbg_no = debug_memory_begin();
-#endif
-
stw_dev->stw_winsys = stw_winsys;
stw_dev->stapi = stw_st_create_api();
stw_dev->stw_winsys = stw_winsys;
stw_dev->stapi = stw_st_create_api();
_glapi_destroy_multithread();
#endif
_glapi_destroy_multithread();
#endif
-#ifdef DEBUG
- debug_memory_end(stw_dev->memdbg_no);
-#endif
-
stw_tls_cleanup();
stw_dev = NULL;
stw_tls_cleanup();
stw_dev = NULL;
#ifndef _OS_MEMORY_H_
#define _OS_MEMORY_H_
#ifndef _OS_MEMORY_H_
#define _OS_MEMORY_H_
-#include "detect_os.h"
-
#if defined(EMBEDDED_DEVICE)
#ifdef __cplusplus
#if defined(EMBEDDED_DEVICE)
#ifdef __cplusplus
-#elif DETECT_OS_WINDOWS && defined(DEBUG) && !defined(DEBUG_MEMORY_IMPLEMENTATION)
-
-# include "os_memory_debug.h"
-
#else
# include "os_memory_stdc.h"
#else
# include "os_memory_stdc.h"