=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Add support for WINED3DFMT_R8G8_SINT format.
Alexandre Julliard
julliard at winehq.org
Thu Nov 10 14:37:54 CST 2016
Module: wine
Branch: master
Commit: dbbb7217c676b6cf668a03c217235059918f43c2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dbbb7217c676b6cf668a03c217235059918f43c2
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Thu Nov 10 12:39:10 2016 +0100
wined3d: Add support for WINED3DFMT_R8G8_SINT 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 3471131..103a5b6 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -244,6 +244,7 @@ static const struct wined3d_typed_format_info typed_formats[] =
{WINED3DFMT_R8G8_SNORM, WINED3DFMT_R8G8_TYPELESS, "ii"},
{WINED3DFMT_R8G8_UNORM, WINED3DFMT_R8G8_TYPELESS, "uu"},
{WINED3DFMT_R8G8_UINT, WINED3DFMT_R8G8_TYPELESS, "UU"},
+ {WINED3DFMT_R8G8_SINT, WINED3DFMT_R8G8_TYPELESS, "II"},
{WINED3DFMT_R16_UNORM, WINED3DFMT_R16_TYPELESS, "u"},
{WINED3DFMT_R16_UINT, WINED3DFMT_R16_TYPELESS, "U"},
{WINED3DFMT_R16_SINT, WINED3DFMT_R16_TYPELESS, "I"},
@@ -1313,6 +1314,10 @@ static const struct wined3d_format_texture_info format_texture_info[] =
GL_RG_INTEGER, GL_UNSIGNED_BYTE, 0,
WINED3DFMT_FLAG_TEXTURE | WINED3DFMT_FLAG_RENDERTARGET,
ARB_TEXTURE_RG, NULL},
+ {WINED3DFMT_R8G8_SINT, GL_RG8I, GL_RG8I, 0,
+ GL_RG_INTEGER, GL_BYTE, 0,
+ WINED3DFMT_FLAG_TEXTURE | WINED3DFMT_FLAG_RENDERTARGET,
+ ARB_TEXTURE_RG, NULL},
{WINED3DFMT_R32_UINT, GL_R32UI, GL_R32UI, 0,
GL_RED_INTEGER, GL_UNSIGNED_INT, 0,
WINED3DFMT_FLAG_TEXTURE | WINED3DFMT_FLAG_RENDERTARGET,
More information about the wine-cvs
mailing list