Skip to content
Commit c471f19f authored by Carsten Haitzler's avatar Carsten Haitzler
Browse files

drm/komeda: Fix off-by-1 when with readback conn due to rounding



When setting up a readback conenctor that writes data back to memory
rather than to an actual output device (HDMI etc.), rounding was ses
to round-down. As the DPU uses a higher internal number of bits when
generating a color value, this round-down back to 8bit ended up with
everything being off-by one. e.g. #ffffff became #fefefe. This sets
rounding to "round" so things end up correct by turning on the round
flag (LW_TRC).

Signed-off-by: Carsten Haitzler's avatarCarsten Haitzler <carsten.haitzler@arm.com>
parent 53df2e81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment