mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 05:10:23 +01:00
llvmpipe: Init eglQueryDmaBufModifiersEXT num_modifiers
Initialize the number of modifiers when `max` is 0 as documented [1]: If <max_formats> is 0, no formats are returned, but the total number of formats is returned in <num_formats>, and no error is generated. [1] https://registry.khronos.org/EGL/extensions/EXT/EGL_EXT_image_dma_buf_import_modifiers.txt Fixes:d74ea2c117("llvmpipe: Implement dmabuf handling") Reported-by: Michal Odehnal <modehnal@redhat.com> Tested-by: Michal Odehnal <modehnal@redhat.com> Reviewed-by: Lucas Fryzek <lfryzek@igalia.com> Signed-off-by: José Expósito <jexposit@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29941> (cherry picked from commit1ef3b38ff8)
This commit is contained in:
parent
fdf3106d43
commit
a405ba5afe
2 changed files with 4 additions and 4 deletions
|
|
@ -254,7 +254,7 @@
|
|||
"description": "llvmpipe: Init eglQueryDmaBufModifiersEXT num_modifiers",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "d74ea2c117fe96e527471e572336f931c3c77da1",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1454,10 +1454,10 @@ llvmpipe_resource_get_param(struct pipe_screen *screen,
|
|||
static void
|
||||
llvmpipe_query_dmabuf_modifiers(struct pipe_screen *pscreen, enum pipe_format format, int max, uint64_t *modifiers, unsigned int *external_only, int *count)
|
||||
{
|
||||
if (max) {
|
||||
*count = 1;
|
||||
*count = 1;
|
||||
|
||||
if (max)
|
||||
*modifiers = DRM_FORMAT_MOD_LINEAR;
|
||||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue