=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Add support for WINED3DFMT_R8_SNORM format.
Alexandre Julliard
julliard at winehq.org
Tue Nov 15 17:56:15 CST 2016
Module: wine
Branch: master
Commit: c859158d649d500c8b21d2550ee84c7d2d9283ba
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c859158d649d500c8b21d2550ee84c7d2d9283ba
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Mon Nov 14 17:31:21 2016 +0100
wined3d: Add support for WINED3DFMT_R8_SNORM 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 | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 5530aad..0d90ad3 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -252,6 +252,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_SNORM, WINED3DFMT_R8_TYPELESS, "i"},
{WINED3DFMT_R8_UINT, WINED3DFMT_R8_TYPELESS, "U"},
{WINED3DFMT_R8_SINT, WINED3DFMT_R8_TYPELESS, "I"},
{WINED3DFMT_BC1_UNORM_SRGB, WINED3DFMT_BC1_TYPELESS, ""},
@@ -1484,6 +1485,11 @@ static const struct wined3d_format_texture_info format_texture_info[] =
WINED3DFMT_FLAG_TEXTURE | WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING | WINED3DFMT_FLAG_FILTERING
| WINED3DFMT_FLAG_RENDERTARGET,
EXT_TEXTURE_SNORM, NULL},
+ {WINED3DFMT_R8_SNORM, GL_R8_SNORM, GL_R8_SNORM, 0,
+ GL_RED, GL_BYTE, 0,
+ WINED3DFMT_FLAG_TEXTURE | WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING | WINED3DFMT_FLAG_FILTERING
+ | WINED3DFMT_FLAG_RENDERTARGET,
+ EXT_TEXTURE_SNORM, NULL},
/* Depth stencil formats */
{WINED3DFMT_D16_LOCKABLE, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT, 0,
GL_DEPTH_COMPONENT, GL_UNSIGNED_SHORT, 0,
More information about the wine-cvs
mailing list