wined3d: Implement vCoverage register.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45848
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 2018-09-18 16:05:57 +02:00 committed by Alexandre Julliard
parent 0df3afcbb0
commit a4bcee5dcc
2 changed files with 5 additions and 0 deletions

View File

@ -3280,6 +3280,10 @@ static void shader_glsl_get_register_name(const struct wined3d_shader_register *
string_buffer_sprintf(register_name, "vpc[%u]", reg->idx[0].offset); string_buffer_sprintf(register_name, "vpc[%u]", reg->idx[0].offset);
break; break;
case WINED3DSPR_COVERAGE:
string_buffer_sprintf(register_name, "gl_SampleMaskIn[0]");
break;
case WINED3DSPR_SAMPLEMASK: case WINED3DSPR_SAMPLEMASK:
string_buffer_sprintf(register_name, "sample_mask"); string_buffer_sprintf(register_name, "sample_mask");
break; break;

View File

@ -4154,6 +4154,7 @@ static inline BOOL shader_is_scalar(const struct wined3d_shader_register *reg)
case WINED3DSPR_OUTPOINTID: case WINED3DSPR_OUTPOINTID:
case WINED3DSPR_PREDICATE: /* p0 */ case WINED3DSPR_PREDICATE: /* p0 */
case WINED3DSPR_PRIMID: /* primID */ case WINED3DSPR_PRIMID: /* primID */
case WINED3DSPR_COVERAGE: /* vCoverage */
case WINED3DSPR_SAMPLEMASK: /* oMask */ case WINED3DSPR_SAMPLEMASK: /* oMask */
return TRUE; return TRUE;