summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-12-31 17:52:03 -0500
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2020-01-02 15:20:55 -0500
commit1b86e0927d4c829209a6134223b0ca5aff771c8d (patch)
tree26f4e342a6ff176f9bb932d604b6afa7c2fc254e /src/gallium/drivers/panfrost
parent829f338a592c711f3f588afea148db66c8b108c0 (diff)
panfrost: Handle RGB16F colour clear
We don't handle this format yet, but we will soon, and the abort in pan_pack_color is possible even without exposing the format... Handling this gracefully might not be required by the spec but let's not crash. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Diffstat (limited to 'src/gallium/drivers/panfrost')
-rw-r--r--src/gallium/drivers/panfrost/pan_job.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c
index b193ce6fa76..208e287740a 100644
--- a/src/gallium/drivers/panfrost/pan_job.c
+++ b/src/gallium/drivers/panfrost/pan_job.c
@@ -1208,6 +1208,8 @@ pan_pack_color(uint32_t *packed, const union pipe_color_union *color, enum pipe_
pan_pack_color_32(packed, out.ui[0] | (out.ui[0] << 16));
else if (size == 3 || size == 4)
pan_pack_color_32(packed, out.ui[0]);
+ else if (size == 6)
+ pan_pack_color_64(packed, out.ui[0], out.ui[1] | (out.ui[1] << 16)); /* RGB16F -- RGBB */
else if (size == 8)
pan_pack_color_64(packed, out.ui[0], out.ui[1]);
else if (size == 16)