=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Add support for WINED3DFMT_R8_UINT format.

Alexandre Julliard julliard at winehq.org
Thu Nov 10 14:37:54 CST 2016


Module: wine
Branch: master
Commit: 40c42757f301e95fef29261f61a31adeb8d16f96
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=40c42757f301e95fef29261f61a31adeb8d16f96

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Thu Nov 10 12:39:07 2016 +0100

wined3d: Add support for WINED3DFMT_R8_UINT format.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/utils.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index d683203..4f5f8ad 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -249,6 +249,7 @@ static const struct wined3d_typed_format_info typed_formats[] =
     {WINED3DFMT_R16_FLOAT,              WINED3DFMT_R16_TYPELESS,          "F"},
     {WINED3DFMT_D16_UNORM,              WINED3DFMT_R16_TYPELESS,          "D"},
     {WINED3DFMT_R8_UNORM,               WINED3DFMT_R8_TYPELESS,           "u"},
+    {WINED3DFMT_R8_UINT,                WINED3DFMT_R8_TYPELESS,           "U"},
     {WINED3DFMT_BC1_UNORM_SRGB,         WINED3DFMT_BC1_TYPELESS,          ""},
     {WINED3DFMT_BC1_UNORM,              WINED3DFMT_BC1_TYPELESS,          ""},
     {WINED3DFMT_BC2_UNORM_SRGB,         WINED3DFMT_BC2_TYPELESS,          ""},
@@ -1327,6 +1328,10 @@ static const struct wined3d_format_texture_info format_texture_info[] =
             GL_RED_INTEGER,             GL_SHORT,                         0,
             WINED3DFMT_FLAG_TEXTURE | WINED3DFMT_FLAG_RENDERTARGET,
             ARB_TEXTURE_RG,             NULL},
+    {WINED3DFMT_R8_UINT,                GL_R8UI,                          GL_R8UI,                                0,
+            GL_RED_INTEGER,             GL_UNSIGNED_BYTE,                 0,
+            WINED3DFMT_FLAG_TEXTURE | WINED3DFMT_FLAG_RENDERTARGET,
+            ARB_TEXTURE_RG,             NULL},
     /* Luminance */
     {WINED3DFMT_L8_UNORM,               GL_LUMINANCE8,                    GL_SLUMINANCE8_EXT,                     0,
             GL_LUMINANCE,               GL_UNSIGNED_BYTE,                 0,




More information about the wine-cvs mailing list