From 2e98d9c7e28c2e0f9df467a609e70b641620061d Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 25 Feb 2018 21:36:45 +0100 Subject: [PATCH] fb_accel_cs_hd1: blit2FB transp handling also warn if falling back to software rendering Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/12a5a296e1f11003322b02ffeb868cdf79d64bdd Author: Stefan Seyfried Date: 2018-02-25 (Sun, 25 Feb 2018) ------------------ This commit was generated by Migit --- src/driver/fb_accel_cs_hd1.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/driver/fb_accel_cs_hd1.cpp b/src/driver/fb_accel_cs_hd1.cpp index dd1b1eb17..240a90743 100644 --- a/src/driver/fb_accel_cs_hd1.cpp +++ b/src/driver/fb_accel_cs_hd1.cpp @@ -312,7 +312,8 @@ void CFbAccelCSHD1::blit2FB(void *fbbuff, uint32_t width, uint32_t height, uint3 } OpenThreads::ScopedLock 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 }