mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 01:50:24 +01:00
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: Daniel Stone <daniels@collabora.com> Reported-by: Andreas Müller <schnitzeltony@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Fixes:3f8513172f("gallium/winsys/drm: introduce modifier field to winsys_handle") (cherry picked from commit4cbecb6168)
This commit is contained in:
parent
f2a13363cf
commit
44c7d1aa2e
1 changed files with 1 additions and 0 deletions
|
|
@ -770,6 +770,7 @@ dri2_allocate_textures(struct dri_context *ctx,
|
|||
whandle.handle = buf->name;
|
||||
whandle.stride = buf->pitch;
|
||||
whandle.offset = 0;
|
||||
whandle.modifier = DRM_FORMAT_MOD_INVALID;
|
||||
if (screen->can_share_buffer)
|
||||
whandle.type = DRM_API_HANDLE_TYPE_SHARED;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue