fbdev: Render 32 bit on 16 bit fbdev - #9
Draft
samueldr wants to merge 2 commits into
Draft
Conversation
samueldr
commented
Feb 11, 2023
Comment on lines
+196
to
+212
| uint16_t * fbp16 = (uint16_t *)fbp; | ||
| int32_t y; | ||
| int32_t x; | ||
| for(y = act_y1; y <= act_y2; y++) { | ||
| for(x = act_x1; x <= act_x2; x++) { | ||
| location = (x + vinfo.xoffset) + (y + vinfo.yoffset) * finfo.line_length / 2; | ||
| fbp16[location] = (uint16_t)( | ||
| // R, and 3 bits from G | ||
| ((color_p->ch.red & 0xf8) | (color_p->ch.green >> 5)) << 8 | ||
| // 3 bits from G, and B | ||
| | ((color_p->ch.green & 0x1c) << 3) | (color_p->ch.blue >> 3) | ||
| ); | ||
| color_p++; | ||
| } | ||
|
|
||
| color_p += area->x2 - act_x2; | ||
| } | ||
| #else |
samueldr
marked this pull request as draft
February 11, 2023 23:16
samueldr
force-pushed
the
feature/16-bit-fbdev
branch
from
August 3, 2025 18:01
89658e3 to
c1c9a6d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This was tested on
nokia-argonwith the vendor kernel.Mainline correctly handles this within DRM, AFAICT.
Blocked until needed on a system; too cumbersome to keep around without testing.