mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 16:00:09 +01:00
clc: allow debug flag to be read from other files
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26524>
This commit is contained in:
parent
3678482f1e
commit
d9d398e652
2 changed files with 11 additions and 5 deletions
|
|
@ -33,11 +33,6 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
enum clc_debug_flags {
|
||||
CLC_DEBUG_DUMP_SPIRV = 1 << 0,
|
||||
CLC_DEBUG_VERBOSE = 1 << 1,
|
||||
};
|
||||
|
||||
static const struct debug_named_value clc_debug_options[] = {
|
||||
{ "dump_spirv", CLC_DEBUG_DUMP_SPIRV, "Dump spirv blobs" },
|
||||
{ "verbose", CLC_DEBUG_VERBOSE, NULL },
|
||||
|
|
@ -46,6 +41,11 @@ static const struct debug_named_value clc_debug_options[] = {
|
|||
|
||||
DEBUG_GET_ONCE_FLAGS_OPTION(debug_clc, "CLC_DEBUG", clc_debug_options, 0)
|
||||
|
||||
uint64_t clc_debug_flags(void)
|
||||
{
|
||||
return debug_get_option_debug_clc();
|
||||
}
|
||||
|
||||
static void
|
||||
clc_print_kernels_info(const struct clc_parsed_spirv *obj)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -267,6 +267,12 @@ clc_specialize_spirv(const struct clc_binary *in_spirv,
|
|||
const struct clc_spirv_specialization_consts *consts,
|
||||
struct clc_binary *out_spirv);
|
||||
|
||||
enum clc_debug_flags {
|
||||
CLC_DEBUG_DUMP_SPIRV = 1 << 0,
|
||||
CLC_DEBUG_VERBOSE = 1 << 1,
|
||||
};
|
||||
uint64_t clc_debug_flags(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue