terasic_mtl can be built with syscons(4) and vt(4) attachments, selected at compile time.
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
sys/dev/terasic/mtl/terasic_mtl_vt.c | ||
---|---|---|
109 | The display is RGBx instead of xRGB. Somehow I'll have to pass this information to xf86-video-scfb -- should we hoist the masks and offsets info struct fb_info? |
sys/dev/terasic/mtl/terasic_mtl_vt.c | ||
---|---|---|
109 | Actually it's an endianness issue, which I did not notice until r269783 went in It's actually an ARGB little-endian framebuffer, or BGRA when viewed as big-endian data. canonical source: inline u_int32_t fb_colour(int r, int g, int b) { return ((r&0xff)<<8) | ((g&0xff)<<16) | ((b&0xff)<<24); } |
Comment Actions
Improve terasic_mtl_vt fdt parsing
- Use OF_getencprop to avoid need for explicit endian handling (submitted by ray@freebsd.org)
- Check for expected length and correct pointer type
Comment Actions
Always better to pack into required format, instead of pack into standard one and then swap it. Fill FB is heavy operation, we should not do steps that can be omitted.