https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7c02c861b151d8121d971…
commit 7c02c861b151d8121d971263c8a9b101add3ce63
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Tue Jan 5 13:16:40 2021 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Thu Feb 4 16:37:07 2021 +0100
[WINESYNC] d3dx9_36: Add format description for X8L8V8U8 for format conversions.
wine-staging patch by Christian Costa <titan.costa(a)gmail.com>
---
dll/directx/wine/d3dx9_36/util.c | 1 +
...rmat_description_for_X8L8V8U8_for_format_conversions.diff | 12 ++++++++++++
2 files changed, 13 insertions(+)
diff --git a/dll/directx/wine/d3dx9_36/util.c b/dll/directx/wine/d3dx9_36/util.c
index 762c1e6034f..860ac21f1fc 100644
--- a/dll/directx/wine/d3dx9_36/util.c
+++ b/dll/directx/wine/d3dx9_36/util.c
@@ -92,6 +92,7 @@ static const struct pixel_format_desc formats[] =
{D3DFMT_G32R32F, { 0, 32, 32, 0}, { 0, 0, 32, 0}, 8, 1, 1, 8,
FORMAT_ARGBF, NULL, NULL },
{D3DFMT_A32B32G32R32F, {32, 32, 32, 32}, {96, 0, 32, 64}, 16, 1, 1, 16,
FORMAT_ARGBF, NULL, NULL },
{D3DFMT_P8, { 8, 8, 8, 8}, { 0, 0, 0, 0}, 1, 1, 1, 1,
FORMAT_INDEX, NULL, index_to_rgba},
+ {D3DFMT_X8L8V8U8, { 0, 8, 8, 8}, { 0, 0, 8, 16}, 4, 1, 1, 4, FORMAT_ARGB,
NULL, NULL },
/* marks last element */
{D3DFMT_UNKNOWN, { 0, 0, 0, 0}, { 0, 0, 0, 0}, 0, 1, 1, 0,
FORMAT_UNKNOWN, NULL, NULL },
};
diff --git
a/sdk/tools/winesync/d3dx9_staging/0002-d3dx9_36__Add_format_description_for_X8L8V8U8_for_format_conversions.diff
b/sdk/tools/winesync/d3dx9_staging/0002-d3dx9_36__Add_format_description_for_X8L8V8U8_for_format_conversions.diff
new file mode 100644
index 00000000000..c94a92934ed
--- /dev/null
+++
b/sdk/tools/winesync/d3dx9_staging/0002-d3dx9_36__Add_format_description_for_X8L8V8U8_for_format_conversions.diff
@@ -0,0 +1,12 @@
+diff --git a/dll/directx/wine/d3dx9_36/util.c b/dll/directx/wine/d3dx9_36/util.c
+index 39afe67..c79067c 100644
+--- a/dll/directx/wine/d3dx9_36/util.c
++++ b/dll/directx/wine/d3dx9_36/util.c
+@@ -88,6 +88,7 @@ static const struct pixel_format_desc formats[] =
+ {D3DFMT_G32R32F, { 0, 32, 32, 0}, { 0, 0, 32, 0}, 8, 1, 1, 8,
FORMAT_ARGBF, NULL, NULL },
+ {D3DFMT_A32B32G32R32F, {32, 32, 32, 32}, {96, 0, 32, 64}, 16, 1, 1, 16,
FORMAT_ARGBF, NULL, NULL },
+ {D3DFMT_P8, { 8, 8, 8, 8}, { 0, 0, 0, 0}, 1, 1, 1, 1,
FORMAT_INDEX, NULL, index_to_rgba},
++ {D3DFMT_X8L8V8U8, { 0, 8, 8, 8}, { 0, 0, 8, 16}, 4, 1, 1, 4,
FORMAT_ARGB, NULL, NULL },
+ /* marks last element */
+ {D3DFMT_UNKNOWN, { 0, 0, 0, 0}, { 0, 0, 0, 0}, 0, 1, 1, 0,
FORMAT_UNKNOWN, NULL, NULL },
+ };