mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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>
This commit is contained in:
parent
829f338a59
commit
1b86e0927d
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue