From: Ilia Mirkin Subject: [PATCH 2/4] exa/nv10: use color 0 when the pict format has no RGB component Date: Sun, 10 Aug 2014 02:25:13 -0400 Message-ID: <1407651915-7500-2-git-send-email-imirkin@alum.mit.edu> References: <1407651915-7500-1-git-send-email-imirkin@alum.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1407651915-7500-1-git-send-email-imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org Signed-off-by: Ilia Mirkin --- src/nv10_exa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nv10_exa.c b/src/nv10_exa.c index df2f561..47cf0ef 100644 --- a/src/nv10_exa.c +++ b/src/nv10_exa.c @@ -520,7 +520,7 @@ setup_picture(NVPtr pNv, PicturePtr pict, PixmapPtr pixmap, int unit, if (pict && PICT_FORMAT_RGB(pict->format)) *color = RCSEL_COLOR | source; else - *color = RCSEL_ALPHA | RCINP_ZERO; + *color = RCSEL_COLOR | RCINP_ZERO; if (pict && PICT_FORMAT_A(pict->format)) *alpha = RCSEL_ALPHA | source; -- 1.8.5.5