mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
panfrost: Make pan_encoder.h CL safe
Will be used for indirect dispatch. Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32839>
This commit is contained in:
parent
c9ccb9568f
commit
a1b1713b43
1 changed files with 10 additions and 2 deletions
|
|
@ -27,13 +27,17 @@
|
|||
#ifndef __PAN_ENCODER_H
|
||||
#define __PAN_ENCODER_H
|
||||
|
||||
#ifndef __OPENCL_VERSION__
|
||||
#include "util/macros.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "genxml/gen_macros.h"
|
||||
#include "util/format/u_format.h"
|
||||
|
||||
#include "pan_pool.h"
|
||||
#else
|
||||
#include "compiler/libcl/libcl.h"
|
||||
#endif
|
||||
|
||||
#include "genxml/gen_macros.h"
|
||||
|
||||
/* Tiler structure size computation */
|
||||
|
||||
|
|
@ -200,6 +204,7 @@ pan_pack_work_groups_compute(struct mali_invocation_packed *out, unsigned num_x,
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifndef __OPENCL_VERSION__
|
||||
#if PAN_ARCH >= 5
|
||||
/* Format conversion */
|
||||
static inline enum mali_z_internal_format
|
||||
|
|
@ -220,9 +225,11 @@ pan_get_z_internal_format(enum pipe_format fmt)
|
|||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* PAN_ARCH */
|
||||
|
||||
#ifndef __OPENCL_VERSION__
|
||||
#if PAN_ARCH >= 9
|
||||
static inline void
|
||||
pan_make_resource_table(struct pan_ptr base, unsigned index, uint64_t address,
|
||||
|
|
@ -238,5 +245,6 @@ pan_make_resource_table(struct pan_ptr base, unsigned index, uint64_t address,
|
|||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue