wined3d: Recognize vThreadID register.

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-06-22 11:37:29 +02:00 committed by Alexandre Julliard
parent bb6417d5af
commit 12754d0f25
3 changed files with 7 additions and 1 deletions

View File

@ -1752,6 +1752,10 @@ static void shader_dump_register(struct wined3d_string_buffer *buffer,
shader_addline(buffer, "g"); shader_addline(buffer, "g");
break; break;
case WINED3DSPR_THREADID:
shader_addline(buffer, "vThreadID");
break;
case WINED3DSPR_THREADGROUPID: case WINED3DSPR_THREADGROUPID:
shader_addline(buffer, "vThreadGroupID"); shader_addline(buffer, "vThreadGroupID");
break; break;

View File

@ -252,6 +252,7 @@ enum wined3d_sm4_register_type
WINED3D_SM5_RT_DOMAIN_LOCATION = 0x1c, WINED3D_SM5_RT_DOMAIN_LOCATION = 0x1c,
WINED3D_SM5_RT_UAV = 0x1e, WINED3D_SM5_RT_UAV = 0x1e,
WINED3D_SM5_RT_SHARED_MEMORY = 0x1f, WINED3D_SM5_RT_SHARED_MEMORY = 0x1f,
WINED3D_SM5_RT_THREAD_ID = 0x20,
WINED3D_SM5_RT_THREAD_GROUP_ID = 0x21, WINED3D_SM5_RT_THREAD_GROUP_ID = 0x21,
WINED3D_SM5_RT_LOCAL_THREAD_ID = 0x22, WINED3D_SM5_RT_LOCAL_THREAD_ID = 0x22,
WINED3D_SM5_RT_LOCAL_THREAD_INDEX = 0x24, WINED3D_SM5_RT_LOCAL_THREAD_INDEX = 0x24,
@ -833,7 +834,7 @@ static const enum wined3d_shader_register_type register_type_table[] =
/* UNKNOWN */ ~0u, /* UNKNOWN */ ~0u,
/* WINED3D_SM5_RT_UAV */ WINED3DSPR_UAV, /* WINED3D_SM5_RT_UAV */ WINED3DSPR_UAV,
/* WINED3D_SM5_RT_SHARED_MEMORY */ WINED3DSPR_GROUPSHAREDMEM, /* WINED3D_SM5_RT_SHARED_MEMORY */ WINED3DSPR_GROUPSHAREDMEM,
/* UNKNOWN */ ~0u, /* WINED3D_SM5_RT_THREAD_ID */ WINED3DSPR_THREADID,
/* WINED3D_SM5_RT_THREAD_GROUP_ID */ WINED3DSPR_THREADGROUPID, /* WINED3D_SM5_RT_THREAD_GROUP_ID */ WINED3DSPR_THREADGROUPID,
/* WINED3D_SM5_RT_LOCAL_THREAD_ID */ WINED3DSPR_LOCALTHREADID, /* WINED3D_SM5_RT_LOCAL_THREAD_ID */ WINED3DSPR_LOCALTHREADID,
/* UNKNOWN */ ~0u, /* UNKNOWN */ ~0u,

View File

@ -388,6 +388,7 @@ enum wined3d_shader_register_type
WINED3DSPR_PATCHCONST, WINED3DSPR_PATCHCONST,
WINED3DSPR_TESSCOORD, WINED3DSPR_TESSCOORD,
WINED3DSPR_GROUPSHAREDMEM, WINED3DSPR_GROUPSHAREDMEM,
WINED3DSPR_THREADID,
WINED3DSPR_THREADGROUPID, WINED3DSPR_THREADGROUPID,
WINED3DSPR_LOCALTHREADID, WINED3DSPR_LOCALTHREADID,
WINED3DSPR_LOCALTHREADINDEX, WINED3DSPR_LOCALTHREADINDEX,