payloads/tianocore: Add a patch to use the proper BytesPerscanline

This fixes tianocore garbled framebuffer when 'x_resolution *
bits_per_pixel / 8' is not equal to 'bytes_per_line'.

This patch was also send to the edk2-devel mailing list:

Tested on Thinkpad X220 with libgfxinit on 1366x768 display.

Change-Id: Ib9eaf692f86d416cd4ec3cc73a8b0aa0a28a38dd
Signed-off-by: Arthur Heymans <>
Tested-by: build bot (Jenkins) <>
Reviewed-by: Nico Huber <>
Reviewed-by: Matt DeVillier <>
1 file changed