mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
fb_accel_cs_hd1: blit2FB transp handling
also warn if falling back to software rendering
Origin commit data
------------------
Branch: ni/coolstream
Commit: 12a5a296e1
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2018-02-25 (Sun, 25 Feb 2018)
------------------
This commit was generated by Migit
This commit is contained in:
committed by
vanhofen
parent
a5788c56f3
commit
2e98d9c7e2
@@ -312,7 +312,8 @@ void CFbAccelCSHD1::blit2FB(void *fbbuff, uint32_t width, uint32_t height, uint3
|
||||
}
|
||||
OpenThreads::ScopedLock<OpenThreads::Mutex> m_lock(mutex);
|
||||
cmd = GXA_CMD_BLT | GXA_CMD_NOT_TEXT | GXA_SRC_BMP_SEL(1) | GXA_DST_BMP_SEL(2) | GXA_PARAM_COUNT(3);
|
||||
|
||||
if (transp)
|
||||
cmd |= GXA_CMD_NOT_ALPHA;
|
||||
_write_gxa(gxa_base, GXA_BMP1_TYPE_REG, (3 << 16) | width);
|
||||
_write_gxa(gxa_base, GXA_BMP1_ADDR_REG, addr);
|
||||
|
||||
@@ -321,6 +322,8 @@ void CFbAccelCSHD1::blit2FB(void *fbbuff, uint32_t width, uint32_t height, uint3
|
||||
_write_gxa(gxa_base, cmd, GXA_POINT(xp, yp + bb)); /* source pos */
|
||||
return;
|
||||
}
|
||||
printf(LOGTAG "%s(%p, %u %u %u %u %u %u %d) swrender fallback\n",
|
||||
__func__, fbbuff, width, height, xoff, yoff, xp, yp, transp);
|
||||
CFrameBuffer::blit2FB(fbbuff, width, height, xoff, yoff, xp, yp, transp, unscaled_w, unscaled_h); //NI
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user