Skip to content
Snippets Groups Projects
Commit 44c7d1aa authored by Daniel Stone's avatar Daniel Stone Committed by Juan A. Suárez
Browse files

st/dri: Initialise modifier to INVALID for DRI2


When allocating a buffer for DRI2, set the modifier to INVALID to inform
the backend that we have no supplied modifiers and it should do its own
thing. The missed initialisation forced linear, even if the
implementation had made other decisions.

This resulted in VC4 DRI2 clients failing with:
  Modifier 0x0 vs. tiling (0x700000000000001) mismatch

Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
Reported-by: default avatarAndreas Müller <schnitzeltony@gmail.com>
Reviewed-by: default avatarEric Anholt <eric@anholt.net>
Fixes: 3f851317 ("gallium/winsys/drm: introduce modifier field to winsys_handle")
(cherry picked from commit 4cbecb61)
parent f2a13363
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment