Skip to content

Conversation

samueldr
Copy link
Member

@samueldr samueldr commented Feb 11, 2023

This was tested on nokia-argon with the vendor kernel.

Mainline correctly handles this within DRM, AFAICT.


Blocked until needed on a system; too cumbersome to keep around without testing.

@samueldr samueldr changed the title fbdev: Render on 16 bit fbdev fbdev: Render on 16 bit on 32 bit fbdev Feb 11, 2023
@samueldr samueldr changed the title fbdev: Render on 16 bit on 32 bit fbdev fbdev: Render on 32 bit on 16 bit fbdev Feb 11, 2023
@samueldr samueldr changed the title fbdev: Render on 32 bit on 16 bit fbdev fbdev: Render 32 bit on 16 bit fbdev Feb 11, 2023
@samueldr samueldr changed the title fbdev: Render 32 bit on 16 bit fbdev fbdev: Render 32 bit on 16 bit fbdev 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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix indentation here

@samueldr samueldr marked this pull request as draft February 11, 2023 23:16
@samueldr samueldr force-pushed the feature/16-bit-fbdev branch from 89658e3 to c1c9a6d Compare August 3, 2025 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

1 participant