Skip to content

Commit

Permalink
Set the fb_id on both paths
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Oct 25, 2023
1 parent 9aedcb8 commit 1705d00
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ TEST_F(MesaDisplayMultiMonitorTest, flip_flips_all_connected_crtcs)
EXPECT_CALL(mock_drm, drmModeAddFB2(mtd::IsFdOfDevice(drm_device),
_, _, _, _, _, _, _, _))
.WillRepeatedly(DoAll(SetArgPointee<7>(fb_id), Return(0)));
EXPECT_CALL(mock_drm, drmModeAddFB2WithModifiers(mtd::IsFdOfDevice(drm_device),
_, _, _, _, _, _, _, _, _))
.WillRepeatedly(DoAll(SetArgPointee<8>(fb_id), Return(0)));

/* All crtcs are flipped */
for (int i = 0; i < num_connected_outputs; i++)
Expand Down

0 comments on commit 1705d00

Please sign in to comment.