wined3d: Recognize SM5 vCoverage input registers.

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-12-09 11:30:50 +01:00 committed by Alexandre Julliard
parent 7ed0e33388
commit c6b2977e69
3 changed files with 7 additions and 1 deletions

View File

@ -1931,6 +1931,10 @@ static void shader_dump_register(struct wined3d_string_buffer *buffer,
shader_addline(buffer, "fp");
break;
case WINED3DSPR_COVERAGE:
shader_addline(buffer, "vCoverage");
break;
default:
shader_addline(buffer, "<unhandled_rtype(%#x)>", reg->type);
break;

View File

@ -306,6 +306,7 @@ enum wined3d_sm4_register_type
WINED3D_SM5_RT_THREAD_ID = 0x20,
WINED3D_SM5_RT_THREAD_GROUP_ID = 0x21,
WINED3D_SM5_RT_LOCAL_THREAD_ID = 0x22,
WINED3D_SM5_RT_COVERAGE = 0x23,
WINED3D_SM5_RT_LOCAL_THREAD_INDEX = 0x24,
};
@ -1020,7 +1021,7 @@ static const enum wined3d_shader_register_type register_type_table[] =
/* WINED3D_SM5_RT_THREAD_ID */ WINED3DSPR_THREADID,
/* WINED3D_SM5_RT_THREAD_GROUP_ID */ WINED3DSPR_THREADGROUPID,
/* WINED3D_SM5_RT_LOCAL_THREAD_ID */ WINED3DSPR_LOCALTHREADID,
/* UNKNOWN */ ~0u,
/* WINED3D_SM5_RT_COVERAGE */ WINED3DSPR_COVERAGE,
/* WINED3D_SM5_RT_LOCAL_THREAD_INDEX */ WINED3DSPR_LOCALTHREADINDEX,
};

View File

@ -394,6 +394,7 @@ enum wined3d_shader_register_type
WINED3DSPR_STREAM,
WINED3DSPR_FUNCTIONBODY,
WINED3DSPR_FUNCTIONPOINTER,
WINED3DSPR_COVERAGE,
};
enum wined3d_data_type