summaryrefslogtreecommitdiff
path: root/mi/misprite.c
diff options
context:
space:
mode:
authorMario Kleiner <mario.kleiner.de@gmail.com>2018-04-04 03:49:02 +0200
committerAdam Jackson <ajax@redhat.com>2018-04-04 14:10:23 -0400
commitce2a4313dd31084f7766af59b8477cabe029bf44 (patch)
tree0a2dee95f5a1f834cd923fc89841fe16bd98a476 /mi/misprite.c
parent44e7098367b87c79470d6760753e42014be7ca01 (diff)
modesetting: Fix page flipping harder under DRI 3.2.
Non-atomic kms drivers like radeon-kms (or nouveau-kms with default setting of "atomic ioctl disabled") don't export any formats, so num_formats == 0. Some atomic drivers (nouveau-kms with boot param nouveau.atomic=1, or intel-kms on, e.g., Linux 4.13) expose num_formats == 0, or don't expose any modifiers, so num_modifiers == 0. Let the drmmode_is_format_supported() check pass in these cases to allow page flipping, as it works just fine. Tested on NV-96 for nouveau, HD-5770 for radeon, Intel Ivybridge with Linux 4.13 and drm-next to fix page flipping. Fixes: 9d147305b404 ("modesetting: Check if buffer format is supported when flipping") Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'mi/misprite.c')
0 files changed, 0 insertions, 0 deletions