wined3d: Add support for WINED3DFMT_R8_SINT format.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2016-11-10 12:39:08 +01:00 committed by Alexandre Julliard
parent 40c42757f3
commit ec2eaaade0

View file

@ -250,6 +250,7 @@ static const struct wined3d_typed_format_info typed_formats[] =
{WINED3DFMT_D16_UNORM, WINED3DFMT_R16_TYPELESS, "D"},
{WINED3DFMT_R8_UNORM, WINED3DFMT_R8_TYPELESS, "u"},
{WINED3DFMT_R8_UINT, WINED3DFMT_R8_TYPELESS, "U"},
{WINED3DFMT_R8_SINT, WINED3DFMT_R8_TYPELESS, "I"},
{WINED3DFMT_BC1_UNORM_SRGB, WINED3DFMT_BC1_TYPELESS, ""},
{WINED3DFMT_BC1_UNORM, WINED3DFMT_BC1_TYPELESS, ""},
{WINED3DFMT_BC2_UNORM_SRGB, WINED3DFMT_BC2_TYPELESS, ""},
@ -1332,6 +1333,10 @@ static const struct wined3d_format_texture_info format_texture_info[] =
GL_RED_INTEGER, GL_UNSIGNED_BYTE, 0,
WINED3DFMT_FLAG_TEXTURE | WINED3DFMT_FLAG_RENDERTARGET,
ARB_TEXTURE_RG, NULL},
{WINED3DFMT_R8_SINT, GL_R8I, GL_R8I, 0,
GL_RED_INTEGER, GL_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,