Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24824>
#include <stdlib.h>
#include "glsl_symbol_table.h"
+#include "mesa/main/config.h"
#include "mesa/main/menums.h" /* for gl_api */
/* THIS is a macro defined somewhere deep in the Windows MSVC header files.
#include "util/macros.h"
#include "util/simple_mtx.h"
-#ifdef __cplusplus
-#include "mesa/main/config.h"
-#endif
-
struct glsl_type;
#ifdef __cplusplus
unsigned atomic_size() const
{
if (is_atomic_uint())
- return ATOMIC_COUNTER_SIZE;
+ return 4; /* ATOMIC_COUNTER_SIZE */
else if (is_array())
return length * fields.array->atomic_size();
else