ethosu: Add debug option for forcing U85 generation
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39611>
This commit is contained in:
parent
45fb8b99df
commit
8872f5eea4
2 changed files with 6 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ static const struct debug_named_value ethosu_debug_options[] = {
|
|||
{"zero_bos", ETHOSU_DBG_ZERO, "Zero buffers for debugging"},
|
||||
{"disable_nhcwb16", ETHOSU_DBG_DISABLE_NHCWB16, "Disable NHCWB16"},
|
||||
{"disable_sram", ETHOSU_DBG_DISABLE_SRAM, "Disable SRAM"},
|
||||
{"force_u85", ETHOSU_DBG_FORCE_U85, "Force U85 behavior even on U65 hardware"},
|
||||
DEBUG_NAMED_VALUE_END};
|
||||
|
||||
DEBUG_GET_ONCE_FLAGS_OPTION(ethosu_debug, "ETHOSU_DEBUG", ethosu_debug_options, 0)
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ enum ethosu_dbg {
|
|||
ETHOSU_DBG_ZERO = BITFIELD_BIT(2),
|
||||
ETHOSU_DBG_DISABLE_NHCWB16 = BITFIELD_BIT(3),
|
||||
ETHOSU_DBG_DISABLE_SRAM = BITFIELD_BIT(4),
|
||||
ETHOSU_DBG_FORCE_U85 = BITFIELD_BIT(5),
|
||||
};
|
||||
|
||||
extern int ethosu_debug;
|
||||
|
|
@ -58,7 +59,10 @@ ethosu_screen(struct pipe_screen *p)
|
|||
static inline bool
|
||||
ethosu_is_u65(struct ethosu_screen *e)
|
||||
{
|
||||
return DRM_ETHOSU_ARCH_MAJOR(e->info.id) == 1;
|
||||
if (DBG_ENABLED(ETHOSU_DBG_FORCE_U85))
|
||||
return false;
|
||||
else
|
||||
return DRM_ETHOSU_ARCH_MAJOR(e->info.id) == 1;
|
||||
}
|
||||
|
||||
struct ethosu_context {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue