arch(config): introduce LV_COLOR_FORMAT_DEFAULT and deprecate LV_COLOR_DEPTH - #10547
Conversation
bf8e7c6 to
044d746
Compare
There was a problem hiding this comment.
2 issues found and verified against the latest diff
You’re at about 95% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="Kconfig">
<violation number="1" location="Kconfig:265">
P1: When any Kconfig format other than RGB565 is selected, Kconfig emits the member symbol but no `CONFIG_LV_COLOR_FORMAT_DEFAULT`, so `lv_conf_internal.h` silently falls back to RGB565. Add a Kconfig-to-header bridge or derive the macro from the selected `LV_COLOR_FORMAT_*` member before relying on this named choice.</violation>
</file>
<file name="scripts/generators/config_headers/kconfig_utils.py">
<violation number="1" location="scripts/generators/config_headers/kconfig_utils.py:205">
P1: When this helper processes the bundled kconfiglib symbols, `sym.defaults` entries contain a source-location field, so the two-value unpack raises before `LV_COLOR_DEPTH` can be classified. Unpack the optional location field as well.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| prompt "Color depth" | ||
| default LV_COLOR_DEPTH_16 | ||
|
|
||
| choice LV_COLOR_FORMAT_DEFAULT |
There was a problem hiding this comment.
P1: When any Kconfig format other than RGB565 is selected, Kconfig emits the member symbol but no CONFIG_LV_COLOR_FORMAT_DEFAULT, so lv_conf_internal.h silently falls back to RGB565. Add a Kconfig-to-header bridge or derive the macro from the selected LV_COLOR_FORMAT_* member before relying on this named choice.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At Kconfig, line 265:
<comment>When any Kconfig format other than RGB565 is selected, Kconfig emits the member symbol but no `CONFIG_LV_COLOR_FORMAT_DEFAULT`, so `lv_conf_internal.h` silently falls back to RGB565. Add a Kconfig-to-header bridge or derive the macro from the selected `LV_COLOR_FORMAT_*` member before relying on this named choice.</comment>
<file context>
@@ -261,10 +261,46 @@ endmenu
- prompt "Color depth"
- default LV_COLOR_DEPTH_16
+ choice LV_COLOR_FORMAT_DEFAULT
+ prompt "Default color format"
+ default LV_COLOR_FORMAT_I1 if LV_COLOR_DEPTH_1
</file context>
| table: dict[str, str] = {} | ||
| fallback = None | ||
|
|
||
| for value, cond in sym.defaults: |
There was a problem hiding this comment.
P1: When this helper processes the bundled kconfiglib symbols, sym.defaults entries contain a source-location field, so the two-value unpack raises before LV_COLOR_DEPTH can be classified. Unpack the optional location field as well.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At scripts/generators/config_headers/kconfig_utils.py, line 205:
<comment>When this helper processes the bundled kconfiglib symbols, `sym.defaults` entries contain a source-location field, so the two-value unpack raises before `LV_COLOR_DEPTH` can be classified. Unpack the optional location field as well.</comment>
<file context>
@@ -165,6 +166,102 @@ def int_const_value(sym) -> str:
+ table: dict[str, str] = {}
+ fallback = None
+
+ for value, cond in sym.defaults:
+ literal = _literal_value(value)
+ if literal is None:
</file context>
| for value, cond in sym.defaults: | |
| for value, cond, *_ in sym.defaults: |
044d746 to
75b0edc
Compare
|
Hi 👋, thank you for your PR! We've run benchmarks in an emulated environment. Here are the results: ARM Emulated 32b - lv_conf_perf32b
Detailed Results Per Scene
ARM Emulated 64b - lv_conf_perf64b
Detailed Results Per Scene
Disclaimer: These benchmarks were run in an emulated environment using QEMU with instruction counting mode. 🤖 This comment was automatically generated by a bot. |
03270ac to
88adcc5
Compare
3c2a510 to
5b4d5b3
Compare
5db806c to
682f438
Compare
682f438 to
3b72f8a
Compare
No description provided.