diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-09-05 15:46:49 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-09-05 15:54:33 +0100 |
commit | a3bccba5475b27e097e9063831ad5f7eed85d61c (patch) | |
tree | 5045811dcf726bb9eb3465cb7e70712bb1a7cd35 /src | |
parent | 3d395062ce73f85e8340218df01c2ebf4bc25023 (diff) |
sna: Select the correct depth for addfb in test_has_dirtyfb()
It's 32bpp, depth 24 (for x8r8g8b8 pixel format), not 32 for everything.
Just to be on the safe side, pick the more common x8r8g8b8 format.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/kgem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 038ecc87..a4407ed6 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -1528,8 +1528,8 @@ static bool test_has_dirtyfb(struct kgem *kgem) create.width = 32; create.height = 32; create.pitch = 4*32; - create.bpp = 32; - create.depth = 32; + create.bpp = 24; + create.depth = 32; /* {bpp:24, depth:32} -> x8r8g8b8 */ create.handle = gem_create(kgem->fd, 1); if (create.handle == 0) return false; |