summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-10-09 14:05:18 +0200
committerDaniel Stone <[email protected]>2019-10-13 14:44:25 +0200
commit35e92a11ddb1450571afc2d66286b97098d486a1 (patch)
treef02cffce7cc2803d888024c35d08b50c1181e79d
parent1294f01e061d9490fa97c35f03ef845e06fd14ab (diff)
panfrost: Fix support for packed 24-bit formats
pan_pack_color() color was missing the 24-bit packed format case. Looks like putting the clear color in a 32-bit slot does the trick. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r--src/gallium/drivers/panfrost/pan_job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c
index 8ba75cde6c4..a10d4a37528 100644
--- a/src/gallium/drivers/panfrost/pan_job.c
+++ b/src/gallium/drivers/panfrost/pan_job.c
@@ -1109,7 +1109,7 @@ pan_pack_color(uint32_t *packed, const union pipe_color_union *color, enum pipe_
pan_pack_color_32(packed, s | (s << 16));
} else if (size == 2)
pan_pack_color_32(packed, out.ui[0] | (out.ui[0] << 16));
- else if (size == 4)
+ else if (size == 3 || size == 4)
pan_pack_color_32(packed, out.ui[0]);
else if (size == 8)
pan_pack_color_64(packed, out.ui[0], out.ui[1]);