compiler: Make shader_enums.h CL-safe
macros.h is not safe for CL for a bunch of reasons but shader_enums.h barely uses its functionality. Stub out the minimum for CL. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Antonino Maniscalco <antonino.maniscalco@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26056>
This commit is contained in:

committed by
Marge Bot

parent
1519ff7ebd
commit
7cfe2ecb33
@@ -26,9 +26,15 @@
|
||||
#ifndef SHADER_ENUMS_H
|
||||
#define SHADER_ENUMS_H
|
||||
|
||||
#include "util/macros.h"
|
||||
|
||||
#ifndef __OPENCL_VERSION__
|
||||
#include <stdbool.h>
|
||||
#include "util/macros.h"
|
||||
#include "util/u_debug.h"
|
||||
#else
|
||||
#define ENUM_PACKED
|
||||
#define BITFIELD_BIT(b) (1u << (b))
|
||||
#define debug_printf(x, ...)
|
||||
#endif
|
||||
|
||||
/* Project-wide (GL and Vulkan) maximum. */
|
||||
#define MAX_DRAW_BUFFERS 8
|
||||
|
Reference in New Issue
Block a user