azbox: default to manual blitting

to check if kernel-autoblit is getting usable, use
"AZBOX_KERNEL_BLIT=1" environment variable


Origin commit data
------------------
Commit: 997f8761b0
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-09-22 (Sun, 22 Sep 2013)
This commit is contained in:
Stefan Seyfried
2013-09-22 14:29:30 +02:00
parent 1a6db2d579
commit 24892baafd
2 changed files with 5 additions and 5 deletions

View File

@@ -870,10 +870,10 @@ void CFbAccel::_blit()
#define FBIO_BLIT 0x22 #define FBIO_BLIT 0x22
#define FBIO_SET_MANUAL_BLIT _IOW('F', 0x21, __u8) #define FBIO_SET_MANUAL_BLIT _IOW('F', 0x21, __u8)
#endif #endif
static bool azblit = getenv("AZBOX_MANUAL_BLIT") ? true : false; static bool autoblit = getenv("AZBOX_KERNEL_BLIT") ? true : false;
void CFbAccel::blit() void CFbAccel::_blit()
{ {
if (!azblit) if (autoblit)
return; return;
// blit // blit
if (ioctl(fb->fd, FBIO_BLIT) < 0) if (ioctl(fb->fd, FBIO_BLIT) < 0)

View File

@@ -418,8 +418,8 @@ fprintf(stderr, "CFrameBuffer::setMode avail: %d active: %d\n", available, activ
#define FBIO_SET_MANUAL_BLIT _IOW('F', 0x21, __u8) #define FBIO_SET_MANUAL_BLIT _IOW('F', 0x21, __u8)
#define FBIO_BLIT 0x22 #define FBIO_BLIT 0x22
#endif #endif
// set manual blit if AZBOX_MANUAL_BLIT environment variable is set // set auto blit if AZBOX_KERNEL_BLIT environment variable is set
unsigned char tmp = getenv("AZBOX_MANUAL_BLIT") ? 1 : 0; unsigned char tmp = getenv("AZBOX_KERNEL_BLIT") ? 0 : 1;
if (ioctl(fd, FBIO_SET_MANUAL_BLIT, &tmp)<0) if (ioctl(fd, FBIO_SET_MANUAL_BLIT, &tmp)<0)
perror("FBIO_SET_MANUAL_BLIT"); perror("FBIO_SET_MANUAL_BLIT");