diff options
author | Mart Raudsepp <leio@gentoo.org> | 2012-09-18 08:43:51 +0300 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2012-09-18 08:53:07 +0300 |
commit | 65d9954ef61b7e22252d38cc81db710a8ec0b22b (patch) | |
tree | 1db9571fd97f60460787e416edd584b3a38cfd0d /src | |
parent | 5f7797cadeaf8a28612b9d0c394f8507eb687c34 (diff) |
lx_exa: Downgrade src/dst format warnings to fallbacks to not spam the log
We don't support 10bit wide color channels, BGRA and other types, which mainly
cause these fallbacks. The ErrorF's were unwarranted, these are just fallbacks
as any other, so don't output these warnings without GEODE_TRACE_FALL.
Diffstat (limited to 'src')
-rw-r--r-- | src/lx_exa.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/lx_exa.c b/src/lx_exa.c index b341c51..c7b7bdd 100644 --- a/src/lx_exa.c +++ b/src/lx_exa.c @@ -630,15 +630,11 @@ lx_check_composite(int op, PicturePtr pSrc, PicturePtr pMsk, PicturePtr pDst) /* Get the formats for the source and destination */ - if ((srcFmt = lx_get_format(pSrc)) == NULL) { - ErrorF("EXA: Invalid source format %x\n", pSrc->format); - return FALSE; - } + if ((srcFmt = lx_get_format(pSrc)) == NULL) + GEODE_FALLBACK(("Unsupported source format %x\n", pSrc->format)); - if ((dstFmt = lx_get_format(pDst)) == NULL) { - ErrorF("EXA: Invalid destination format %x\n", pDst->format); - return FALSE; - } + if ((dstFmt = lx_get_format(pDst)) == NULL) + GEODE_FALLBACK(("Unsupported destination format %x\n", pDst->format)); /* Make sure operations that need alpha bits have them */ /* If a mask is enabled, the alpha will come from there */ |