diff options
| author | Maxime Ripard <maxime.ripard@bootlin.com> | 2019-02-08 14:18:55 +0100 |
|---|---|---|
| committer | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2019-02-11 10:53:07 +0100 |
| commit | 91c9515d683a05df86bca78b086e2e68f504e10f (patch) | |
| tree | 97e648e4fc1e113723882ae9f8fc86c16bdb35f8 /lib/igt_color_encoding.c | |
| parent | d6e7907dcb71f97691f8bceb9b4206c077ff9802 (diff) | |
igt: fb: Don't pass the stride when allocating a dumb, multi-planar buffer
The dumb buffer allocation API only considers a single plane, and even
though allocating multi-planar buffers through it is allowed, the stride it
gives back is the the width times the bpp passed as an argument.
That doesn't work in our case, since the bpp is going to be the one we give
as an argument, but split over three planes so the stride doesn't match
anymore.
A proper fix for this would be to have a better dumb buffer allocation API,
but for the time being, let's do it that way.
Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Diffstat (limited to 'lib/igt_color_encoding.c')
0 files changed, 0 insertions, 0 deletions
