intel: make sure intel_wa.h can be included by opencl code

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32059>
This commit is contained in:
Lionel Landwerlin 2024-11-08 15:26:31 +02:00 committed by Marge Bot
parent 672d41d22a
commit 53eed61a90
2 changed files with 5 additions and 0 deletions

View file

@ -54,14 +54,18 @@ HEADER_TEMPLATE = Template("""\
#ifndef INTEL_WA_H
#define INTEL_WA_H
#ifndef __OPENCL_VERSION__
#include "util/macros.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __OPENCL_VERSION__
struct intel_device_info;
void intel_device_info_init_was(struct intel_device_info *devinfo);
#endif
enum intel_wa_steppings {
% for a in stepping_enum:

View file

@ -12,6 +12,7 @@
#include "util/macros.h"
#else
#define PRAGMA_POISON(param)
#define BITFIELD_BIT(i) (1u << i)
typedef ulong uint64_t;