From 545a3cbb011e0e7722c2accb330c0994aea5cc38 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Mon, 14 Sep 2015 01:59:01 -0400 Subject: [PATCH] freedreno/a3xx: fix blending of L8 format Even though luminance formats don't have alpha, we still want the alpha output to go to the blender. This fixes the luminance blending tests. Signed-off-by: Ilia Mirkin Cc: "11.0" --- src/gallium/drivers/freedreno/a3xx/fd3_format.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_format.c b/src/gallium/drivers/freedreno/a3xx/fd3_format.c index 04cb9b98fb7..857d156c869 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_format.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_format.c @@ -355,6 +355,8 @@ fd3_fs_output_format(enum pipe_format format) case PIPE_FORMAT_R16G16_FLOAT: case PIPE_FORMAT_R11G11B10_FLOAT: return RB_R16G16B16A16_FLOAT; + case PIPE_FORMAT_L8_UNORM: + return RB_R8G8B8A8_UNORM; default: return fd3_pipe2color(format); } -- 2.30.2