Commit 4235d59d authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Handle swizzle type equal to 0 as NOSWIZZLE.

Just to silent unnecessary FIXME messages. Signed-off-by: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent aae728ea
......@@ -175,6 +175,7 @@ enum wined3d_sm4_input_primitive_type
enum wined3d_sm4_swizzle_type
{
WINED3D_SM4_SWIZZLE_NONE = 0x0,
WINED3D_SM4_SWIZZLE_VEC4 = 0x1,
WINED3D_SM4_SWIZZLE_SCALAR = 0x2,
};
......@@ -725,6 +726,10 @@ static BOOL shader_sm4_read_src_param(struct wined3d_sm4_data *priv, const DWORD
switch (swizzle_type)
{
case WINED3D_SM4_SWIZZLE_NONE:
src_param->swizzle = WINED3DSP_NOSWIZZLE;
break;
case WINED3D_SM4_SWIZZLE_SCALAR:
src_param->swizzle = (token & WINED3D_SM4_SWIZZLE_MASK) >> WINED3D_SM4_SWIZZLE_SHIFT;
src_param->swizzle = (src_param->swizzle & 0x3) * 0x55;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment