From c6b2977e69e591df249cc7c211e4422b912c1953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Fri, 9 Dec 2016 11:30:50 +0100 Subject: [PATCH] wined3d: Recognize SM5 vCoverage input registers. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Józef Kucia Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/shader.c | 4 ++++ dlls/wined3d/shader_sm4.c | 3 ++- dlls/wined3d/wined3d_private.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/dlls/wined3d/shader.c b/dlls/wined3d/shader.c index 24051cc833a..e5b969c5727 100644 --- a/dlls/wined3d/shader.c +++ b/dlls/wined3d/shader.c @@ -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, "", reg->type); break; diff --git a/dlls/wined3d/shader_sm4.c b/dlls/wined3d/shader_sm4.c index 4a4926b7798..4ed2391e8b1 100644 --- a/dlls/wined3d/shader_sm4.c +++ b/dlls/wined3d/shader_sm4.c @@ -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, }; diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index e788f59d4d7..0be5856c9cf 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -394,6 +394,7 @@ enum wined3d_shader_register_type WINED3DSPR_STREAM, WINED3DSPR_FUNCTIONBODY, WINED3DSPR_FUNCTIONPOINTER, + WINED3DSPR_COVERAGE, }; enum wined3d_data_type