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 <[email protected]>
---
 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 ab4b038..874fa78 100644
--- a/src/gallium/drivers/freedreno/a3xx/fd3_format.c
+++ b/src/gallium/drivers/freedreno/a3xx/fd3_format.c
@@ -364,6 +364,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.4.6

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to