diff options
author | Ilia Mirkin <[email protected]> | 2015-09-14 01:59:01 -0400 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-09-23 21:03:44 +0100 |
commit | 395cd23690345ce4a5c4b97ba6497009a984240e (patch) | |
tree | edec0f960f6aea90780a9efd98c679fc74e2a662 /src | |
parent | d04024cffa9dcce467cbaf89809f9ec1512f9703 (diff) |
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 <[email protected]>
Cc: "11.0" <[email protected]>
(cherry picked from commit 545a3cbb011e0e7722c2accb330c0994aea5cc38)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_format.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |