Commit Graph

36 Commits

Author SHA1 Message Date
Stefan Seyfried
73dc5eea71 fb_generic: use 32bit pointers instead of 8bit 2017-02-19 11:29:20 +01:00
Stefan Seyfried
a6fc59ad6c fb_generic: add swidth variable, "stride in fb_pixel_t units"
this should allow to use fb_pixel_t pointer arithmetics more often
instead of byte pointers
2017-02-15 20:30:52 +01:00
Stefan Seyfried
05d1732cea implement getWidth4FB_HW_ACC in fb_accel class
This helper to determine alignment for hardware blitting is now in
system/helpers.h, where it does not really belong. Put it into the
framebuffer class instead. Framebuffers that don't need it will just
get a dummy function, the cs_hd2 framebuffer gets the real thing.
Also add a bool function that indicates the need for alignment.
2017-02-14 00:09:33 +01:00
Stefan Seyfried
2819e651c3 Merge remote-tracking branch 'tuxbox/pu/fb-modules'
only compile tested ;-)
2017-02-12 21:29:10 +01:00
Stefan Seyfried
c266891a71 fb_generic: add sanity check and missing mark() to painIcon8 2017-02-12 18:10:11 +01:00
M. Liebmann
987dbe7f1d pu/fb-modules: Rename hardware defined macros for coolstream stb
BOXMODEL_NEVIS => BOXMODEL_CS_HD1
  BOXMODEL_APOLLO => BOXMODEL_CS_HD2
2017-02-12 09:24:51 +01:00
Stefan Seyfried
821c6a490d fb_generic: initialization and deinitialization fixes
* initialize variables locked and cache_size in constructor
* set lfb pointer to NULL after munmap(), fd to -1 after close
* remove unused tty fd close()
2017-02-11 18:54:50 +01:00
Stefan Seyfried
d498917594 fb_generic: remove unused VT switching / restoring code 2017-02-09 12:57:18 +01:00
Stefan Seyfried
b04b1d7f8c fb_accel: add TripleDragon framebuffer code 2017-02-09 12:57:18 +01:00
Stefan Seyfried
8441a719cb fb_generic: open device O_CLOEXEC, better diagnostic output 2017-02-09 12:57:18 +01:00
Stefan Seyfried
cb3710eaed fb_generic: remove unused VT switching / restoring code 2017-02-09 00:01:08 +01:00
Stefan Seyfried
ec1f030393 fb_accel: add TripleDragon framebuffer code 2017-02-08 23:53:54 +01:00
Stefan Seyfried
2c01510266 fb_generic: open device O_CLOEXEC, better diagnostic output 2017-02-08 23:38:00 +01:00
M. Liebmann
a4afe1e8e0 fb_accel: Rename CFbAccelCSApollo class => CFbAccelCSHD2
Rename fb_accel_cs_apollo.cpp => fb_accel_cs_hd2.cpp
2017-02-08 12:52:26 +01:00
M. Liebmann
58bd8a4a63 fb_accel: Rename CFbAccelCSNevis class => CFbAccelCSHD1
Rename fb_accel_cs_nevis.cpp => fb_accel_cs_hd1.cpp
2017-02-08 12:52:25 +01:00
Stefan Seyfried
2498ebb314 fb_accel: add backend for GL framebuffer 2017-02-07 17:23:42 +01:00
M. Liebmann
6ff9ff695b fb_accel: add accelerated framebuffer for Apollo graphic chips 2017-02-07 17:23:42 +01:00
Stefan Seyfried
0e63e5df3d fb_accel: add accelerated framebuffer for Nevis GXA chips
Signed-off-by: M. Liebmann <git@tuxcode.de>
2017-02-07 17:23:42 +01:00
Stefan Seyfried
ecb6531fd7 fb_generic: fix blit2FB call 2017-02-07 17:23:42 +01:00
Stefan Seyfried
9fe5dfbe50 framebuffer: add accelerator for STi framebuffer
also add a generic helper class for other accelerated
framebuffer implementations
2017-02-07 17:23:42 +01:00
Stefan Seyfried
beb2a67123 fb_generic: nicer debug output, remove dead code 2017-02-07 17:23:42 +01:00
Stefan Seyfried
a58193dd56 fb_generic: add fb_name member to identify fb implementation 2017-02-07 17:23:42 +01:00
Stefan Seyfried
9ba84a629a fb_generic: add pointer for double-buffered fb 2017-02-07 17:23:42 +01:00
Stefan Seyfried
3f63080454 fb_generic: remove all hardware specific code 2017-02-07 17:23:42 +01:00
Stefan Seyfried
3c381cd53b fb_generic: add stuff needed for compilation 2017-02-07 17:23:42 +01:00
Stefan Seyfried
5c2ee5e137 start modularizing framebuffer acceleration architecture
This is just copied framebuffer.{h,cpp} => fb_generic.{h,cpp}
The idea is to implement CFrameBuffer as generic framebuffer class that
does work on almost every hardware without acceleration and / or
hardware dependencies.
CFbAccel will be a derived class (and different on many architectures)
which implements the accelerated functions.
This does not yet compile, verbatim copies to track development history.
2017-02-07 17:23:42 +01:00
Stefan Seyfried
05d4017b36 fb_accel: add backend for GL framebuffer 2017-02-06 00:15:37 +01:00
Stefan Seyfried
9fffbef19d fb_accel: add accelerated framebuffer for Nevis GXA chips 2017-02-05 23:03:22 +01:00
Stefan Seyfried
f372d56e41 fb_generic: fix blit2FB call 2017-02-05 22:50:23 +01:00
Stefan Seyfried
e56fde4082 framebuffer: add accelerator for STi framebuffer
also add a generic helper class for other accelerated
framebuffer implementations
2017-02-05 21:35:52 +01:00
Stefan Seyfried
2d57ea34f4 fb_generic: nicer debug output, remove dead code 2017-02-05 20:45:13 +01:00
Stefan Seyfried
257ffd9ee3 fb_generic: add fb_name member to identify fb implementation 2017-02-05 19:53:29 +01:00
Stefan Seyfried
b767d1ef41 fb_generic: add pointer for double-buffered fb 2017-02-05 18:04:15 +01:00
Stefan Seyfried
1034642093 fb_generic: remove all hardware specific code 2017-02-05 15:22:22 +01:00
Stefan Seyfried
ceb82a4b47 fb_generic: add stuff needed for compilation 2017-02-05 15:02:20 +01:00
Stefan Seyfried
3256978c58 start modularizing framebuffer acceleration architecture
This is just copied framebuffer.{h,cpp} => fb_generic.{h,cpp}
The idea is to implement CFrameBuffer as generic framebuffer class that
does work on almost every hardware without acceleration and / or
hardware dependencies.
CFbAccel will be a derived class (and different on many architectures)
which implements the accelerated functions.
This does not yet compile, verbatim copies to track development history.
2017-02-05 14:49:41 +01:00