st/dri: don't set queryDmaBufFormats/queryDmaBufModifiers if the driver does not...
authorMichal Srb <msrb@suse.com>
Thu, 15 Mar 2018 16:27:57 +0000 (17:27 +0100)
committerAdam Jackson <ajax@redhat.com>
Wed, 19 Sep 2018 19:20:04 +0000 (15:20 -0400)
commit194bf0a2e01769f4b29df06febf27ce340c1cd68
treeca55ba65493514d9a3522cb41724f395068447e6
parentc811af767e61a3df7bd844b49812d85a9b910aa3
st/dri: don't set queryDmaBufFormats/queryDmaBufModifiers if the driver does not implement it

This is equivalent to commit a65db0ad1c3, but for dri_kms_init_screen. Without
this gbm_dri_is_format_supported always returns false.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104926
Fixes: e14fe41e0bf ("st/dri: implement createImageFromRenderbuffer(2)")
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Tested-by: Adam Williamson <adamwill@fedoraproject.org>
src/gallium/state_trackers/dri/dri2.c