OSDN Git Service

loader: fix the no-modifiers case
authorRob Clark <robdclark@gmail.com>
Tue, 22 Jan 2019 19:08:41 +0000 (14:08 -0500)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 29 Jan 2019 17:44:27 +0000 (17:44 +0000)
commit9d4565100527d1de5941e4ff41a88318a95ba2cc
tree42a999b6cd5f79ced99776ab2f57cdd8ba5821a7
parent77ac39c35904b1b20df3f6f33b6672c428318a74
loader: fix the no-modifiers case

Normally modifiers take precendence over use flags, as they are more
explicit.  But if the driver supports modifiers, but the xserver does
not, then we should fallback to the old mechanism of allocating a buffer
using 'use' flags.

Fixes: 069fdd5f9facbd72fb6a289696c7b74e3237e70f
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org>
(cherry picked from commit c56fe4118a2dd991ff1b2a532c0f234eddd435e9)
src/loader/loader_dri3_helper.c