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:
parent
0df3afcbb0
commit
a4bcee5dcc
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue