mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
loader/dri3: create linear buffer with scanout support
If we have a different GPU dealing with display, we fallback to
exchanging linear buffers with the compositor. We should specify in
creating the linear buffer that this could be used for display.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4706
Cc: mesa-stable
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11942>
(cherry picked from commit f1a66e7c90)
This commit is contained in:
parent
5577fb807e
commit
d06433f883
2 changed files with 5 additions and 3 deletions
|
|
@ -193,7 +193,7 @@
|
|||
"description": "loader/dri3: create linear buffer with scanout support",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1448,7 +1448,8 @@ dri3_alloc_render_buffer(struct loader_dri3_drawable *draw, unsigned int format,
|
|||
dri3_linear_format_for_format(draw, format),
|
||||
__DRI_IMAGE_USE_SHARE |
|
||||
__DRI_IMAGE_USE_LINEAR |
|
||||
__DRI_IMAGE_USE_BACKBUFFER,
|
||||
__DRI_IMAGE_USE_BACKBUFFER |
|
||||
__DRI_IMAGE_USE_SCANOUT,
|
||||
buffer);
|
||||
pixmap_buffer = linear_buffer_display_gpu;
|
||||
}
|
||||
|
|
@ -1460,7 +1461,8 @@ dri3_alloc_render_buffer(struct loader_dri3_drawable *draw, unsigned int format,
|
|||
dri3_linear_format_for_format(draw, format),
|
||||
__DRI_IMAGE_USE_SHARE |
|
||||
__DRI_IMAGE_USE_LINEAR |
|
||||
__DRI_IMAGE_USE_BACKBUFFER,
|
||||
__DRI_IMAGE_USE_BACKBUFFER |
|
||||
__DRI_IMAGE_USE_SCANOUT,
|
||||
buffer);
|
||||
|
||||
pixmap_buffer = buffer->linear_buffer;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue