mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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:
parent
672d41d22a
commit
53eed61a90
2 changed files with 5 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
#include "util/macros.h"
|
||||
|
||||
#else
|
||||
#define PRAGMA_POISON(param)
|
||||
#define BITFIELD_BIT(i) (1u << i)
|
||||
|
||||
typedef ulong uint64_t;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue