summaryrefslogtreecommitdiff
path: root/sys/dev/rasops
AgeCommit message (Collapse)Author
2019-07-30Support shadow framebuffer for 24bpp screen.rin
2019-07-30In rasops_copy{rows,cols}(), if src == dst, we have nothing to do.rin
Otherwise, we can use memcpy safely instead of memmove.
2019-07-30Fix catastrophe when ri_emustride != ri_stride in rasops_copyrows().rin
2019-07-30Treat highlighted and reversed text in the same manner to xterm.rin
2019-07-29Try to fix problem reported by ryoon:rin
http://mail-index.netbsd.org/source-changes-d/2019/07/29/msg011516.html There are apparent bugs for shadow framebuffer. Sorry for the breakage.
2019-07-29Hmmm, color was still strange for 24bpp on little endian machine,rin
only when font width is 12. We need to use different devcmap for that case, if we wish to share codes for other depths/font widths as possible as we can. XXX What should we do for big endian? I have no big endian machines with 24bpp framebuffer...
2019-07-29Simplify and tiny optimization.rin
2019-07-29Fix color on 24bpp screen for little endian.rin
2019-07-29Support anti-aliasing for depth 24.rin
2019-07-29Factor out putchar_aa functions into rasops_putchar_aa.h, which includesrin
the following fixes: - stop using memset to framebuffer for depth 8 - correctly support non-standard positions/lengths of RGB bits in pixel
2019-07-29Avoid undefined behavior when converting unaligned be32 data torin
host integer, found by kUBSan. Pointed out by msaitoh.
2019-07-29Convert rasops2.c and rasops4.c to use rasops_putchar_width.h.rin
Style.
2019-07-29Clean up for rasops1.c:rin
- dedup ugly copy-paste - rewrite to factorize width-optimized putchar functions - misc style
2019-07-29Fix missing underlines on mono screen.rin
Style.
2019-07-28Avoid memset to framebuffer.rin
XXX There still remains memset in rasops8.c, which will be removed soon when putchar_aa functions are factorized.
2019-07-28Cast attr to uint32_t before right shift to avoid undefined behavior.rin
Also, misc style/cosmetic changes for clarity.
2019-07-28Free kmem_alloc'd memory with kmem_freemartin
2019-07-28Simplify and style. No functional changes intended.rin
2019-07-28Redo fix in rev 1.2rin
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/rasops/rasops_putchar_width.h#rev1.2 in a correct way. For 24bpp framebuffer, we need to use ``stamp triplets'' even for fully blank or filled rows. Now, background-color for white space and underline are correctly drawn.
2019-07-28Fix factorization fallout; pointer for shadow framebuffer should berin
rolled back before drawing underline.
2019-07-28Fix corruption of background-colored white space and underline whenrin
font width is 8 or 16 on 2bpp screen.
2019-07-28Fix underline for anti-aliased fonts on 15/16 depth screen.rin
2019-07-26Put back byte-wise copy to stop using memcpy, whichrin
does not work for device memory on some platforms. Pointed out by Jared, many thanks!
2019-07-26Add genfb(4) driver for mac68k grfbus.rin
1, 2, 4, 8, 15, and 32 color-depths are supported. ANSI colors on console are functional for depth >= 4. Graphic applications based on wsfb API should work, provided they can correctly handle fbi_fboffset and your color depth. wsfb driver of Xorg 1.20 and mlterm-fb (framebuffer version of x11/mlterm) work fine for depth == 1 || depth >= 8. For depth == 8 (256 colors), graphic applications require colormap callback, which is currently supported for some internal graphic adapters, and only Civic (found on Quadra AV series) was tested. Register definition and its usage are taken from Linux. You can easily support other adapters if Linux supports that. Have fun, and any problem reports are welcomed!
2019-07-26Fix 4-bpp stamp for big endian.rin
2019-07-26Replace manually unrolled loops with memcpy/memmove or simple loops.rin
Modern compilers are smart enough; there's no measurable changes in performance even on MC68040 with optimization level -Os. Also, convert loop of byte-wise copy into memset.
2019-07-26Misc creen up for rasops.c:rin
- sort headers - return error value instead of panic - use uintptr_t for cast pointer to integer - use macros appropriately - use __func__ - some consistency check ifndef DEBUG - try to avoid undefined behaviors related to shift - convert malloc/free to kmem_alloc/kmem_free - convert MIN to uimin - style
2019-07-26XXXrin
Add hack so that colorbars(6) works for 24-bpp. The code before factorization did the same in a strange way.
2019-07-25Factor out putchar and width-optimized putchar functions intorin
rasops_putchar.h and rasops_putchar_width.h, respectively. XXX Possibly, we can do the same for putchar_aa functions. But it is currently missing for 24-bpp.
2019-07-25Add width-optimized putchar functions for 32-bpp, that work fine onrin
both little- and big-endian machines. WIP genfb(4) driver for mac68k becomes 1.5 times faster!
2019-07-25Provide and use FONT_GLYPH macro, tiny optimization version of WSFONT_GLYPH.rin
2019-07-25Misc cleen up:rin
- Make 32bit mask unsigned - DPRINTF --> __nothing ifndef DEBUG_RASOPS - "#ifdef DIAGNOSTIC if (x) panic(); #endif" --> KASSERT(!x); - KNF No functional changes intended.
2019-07-25Cosmetic changes. No functional changes.rin
2019-07-25Fix screen corruption with 16-width font on 8-bpp display.rin
2019-07-25For kUBSan, avoid undefined behaviors even if harmless.rin
No functional changes intended. Requested by uwe.
2019-07-24Oops, revert unintentional changes.rin
2019-07-24Well, masks do not have to be updated every time in loop.rin
Calculate them in advance even if it may be bogus.
2019-07-24Simplify logic and tiny clean-up.rin
2019-07-24Avoid shift-count overflow to fix strange cursor behaviors on amd64rin
when font width is odd.
2019-07-24Use unsigned integers for binary data storage.rin
No functional changes intended.
2019-07-24Adjust white space.rin
2019-07-24Style:rin
- u_char --> uint8_t - u_int*_t --> uint*_t No functional changes.
2019-07-21Fix cursor movement for ri_xscale = 1, e.g., fontwidth = 8 and bpp = 1.rin
2019-07-21Fix byte order of stamp for big endian so that width-optimizedrin
putchar functions work correctly.
2019-03-01Fix whitespace. (In the source code, not in the functionality.)jakllsch
2019-03-01Underline when the attribute say underline, not when it says to reverse.jakllsch
2019-03-01Reset 'height' before underlining in rasops32_putchar_aa().jakllsch
Prevents segfault when underlining whitespace in the upper left cell.
2018-12-05It's WSATTR_UNDERLINE, not WS_UNDERLINE.mlelstv
2018-12-04rasops reused wscons attribute bits for internal control.mlelstv
- make upper 4 attribute bits available for such use - use wscons flag names instead of literal constants.
2018-11-29rasops_do_cursor():macallan
- simplify & sanitize the unaligned case - use only 32bit accesses ... no longer crash with odd sized fonts in 8bit