diff options
Diffstat (limited to 'recipes-graphics/mesa/mesa/0004-loader-dri-hook-up-createImageWithModifiers2.patch')
-rw-r--r-- | recipes-graphics/mesa/mesa/0004-loader-dri-hook-up-createImageWithModifiers2.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/recipes-graphics/mesa/mesa/0004-loader-dri-hook-up-createImageWithModifiers2.patch b/recipes-graphics/mesa/mesa/0004-loader-dri-hook-up-createImageWithModifiers2.patch deleted file mode 100644 index c80978a7..00000000 --- a/recipes-graphics/mesa/mesa/0004-loader-dri-hook-up-createImageWithModifiers2.patch +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | From c03e79d7831f253b16d6f52f2fb959eb02257a8b Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Tue, 15 Dec 2020 14:59:21 +0100 | ||
4 | Subject: [PATCH] loader/dri: hook up createImageWithModifiers2 | ||
5 | |||
6 | Call into the new modifiers with usage createImage variant when available | ||
7 | to provide the DRI implementation with more context about the allocation. | ||
8 | |||
9 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
10 | Reviewed-by: Daniel Stone <daniels@collabora.com> | ||
11 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106> | ||
12 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/c03e79d7831f253b16d6f52f2fb959eb02257a8b] | ||
13 | --- | ||
14 | src/loader/loader_dri_helper.c | 12 +++++++++--- | ||
15 | 1 file changed, 9 insertions(+), 3 deletions(-) | ||
16 | |||
17 | diff --git a/src/loader/loader_dri_helper.c b/src/loader/loader_dri_helper.c | ||
18 | index 21419f087d6..972ca2da26a 100644 | ||
19 | --- a/src/loader/loader_dri_helper.c | ||
20 | +++ b/src/loader/loader_dri_helper.c | ||
21 | @@ -57,9 +57,15 @@ __DRIimage *loader_dri_create_image(__DRIscreen *screen, | ||
22 | if (!has_valid_modifier) | ||
23 | return NULL; | ||
24 | |||
25 | - return image->createImageWithModifiers(screen, width, height, | ||
26 | - dri_format, modifiers, | ||
27 | - modifiers_count, loaderPrivate); | ||
28 | + if (image->base.version >= 19 && image->createImageWithModifiers2) | ||
29 | + return image->createImageWithModifiers2(screen, width, height, | ||
30 | + dri_format, modifiers, | ||
31 | + modifiers_count, dri_usage, | ||
32 | + loaderPrivate); | ||
33 | + else | ||
34 | + return image->createImageWithModifiers(screen, width, height, | ||
35 | + dri_format, modifiers, | ||
36 | + modifiers_count, loaderPrivate); | ||
37 | } | ||
38 | |||
39 | /* No modifier given or fallback to the legacy createImage allowed */ | ||
40 | -- | ||
41 | 2.31.1 | ||
42 | |||