]> Git Repo - qemu.git/commit
bcm2835_property: use cached values when querying framebuffer
authorSylvain Garrigues <[email protected]>
Thu, 12 May 2016 12:22:25 +0000 (13:22 +0100)
committerPeter Maydell <[email protected]>
Thu, 12 May 2016 12:22:25 +0000 (13:22 +0100)
commit27a5dc7be6a55b60039e39206eed2734ea166a47
tree24ece303a4ffd4823d1aefed3d4dee1c3b807606
parent0a750e2a787b78ea49d2570cdf342c64ee79933d
bcm2835_property: use cached values when querying framebuffer

As the framebuffer settings are copied into the result message before it is
reconfigured, inconsistent behavior can happen when, for instance, you set with
a single message the width, height, and depth, and ask at the same time to
allocate the buffer and get the pitch and the size.

In this case, the reported pitch and size would be incorrect as they were
computed with the initial values of width, height and depth, not the ones the
client requested.

Signed-off-by: Sylvain Garrigues <[email protected]>
Reviewed-by: Andrew Baumann <[email protected]>
Message-id: 1461325343[email protected]
[PMM: folded a couple of long lines]
Signed-off-by: Peter Maydell <[email protected]>
hw/misc/bcm2835_property.c
This page took 0.025337 seconds and 4 git commands to generate.