Commit f66d3954 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Chris Wilson

sna: Fix dirtyfb detection

Fix the accidentally swapped bpp and depth values passed to
the addfb ioctl when we're testing for dirtyfb presence.
Currently the addfb fails every time so we don't even test
the actual dirtyfb ioctl.
Signed-off-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
parent d90a2ff1
......@@ -1538,8 +1538,8 @@ static bool test_has_dirtyfb(struct kgem *kgem)
create.width = 32;
create.height = 32;
create.pitch = 4*32;
create.bpp = 24;
create.depth = 32; /* {bpp:24, depth:32} -> x8r8g8b8 */
create.bpp = 32;
create.depth = 24; /* {bpp:32, depth:24} -> x8r8g8b8 */
create.handle = gem_create(kgem->fd, 1);
if (create.handle == 0)
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment