summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2019-12-09 17:01:36 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2019-12-09 22:26:46 +0000
commitf66d39544bb8339130c96d282a80f87ca1606caf (patch)
tree55ced7c5ebe7a5c5e92112d952c477f3aa723769
parentd90a2ff1a6f338fa70fc9a110d9f7b0e622c8a57 (diff)
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ä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 9c0708a6..6a35067c 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -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;