etnaviv: hwdb: Add VIP_V7 and NN_XYDP0 feature bits

These can be used to detect the NN core architecture version [1].

[1] https://github.com/nxp-imx/linux-imx/blob/lf-6.1.36-2.1.0/drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_func.c#L5464-L5465

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28878>
This commit is contained in:
Philipp Zabel 2024-04-19 13:02:56 +02:00 committed by Marge Bot
parent 588c762936
commit db2d5a0103
2 changed files with 5 additions and 0 deletions

View file

@ -62,6 +62,8 @@ enum etna_feature {
ETNA_FEATURE_PE_NO_ALPHA_TEST,
ETNA_FEATURE_SH_NO_ONECONST_LIMIT,
ETNA_FEATURE_DEC400,
ETNA_FEATURE_VIP_V7,
ETNA_FEATURE_NN_XYDP0,
ETNA_FEATURE_NUM,
};

View file

@ -91,6 +91,9 @@ etna_query_feature_db(struct etna_core_info *info)
ETNA_FEATURE(DEC400, DEC400);
ETNA_FEATURE(VIP_V7, VIP_V7);
ETNA_FEATURE(NN_XYDP0, NN_XYDP0);
/* Limits: */
if (info->type == ETNA_CORE_GPU) {
info->gpu.max_instructions = db->InstructionCount;