wined3d: Skip non-color outputs in SM4 shader output mapping.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2022-02-09 16:50:02 +01:00 committed by Alexandre Julliard
parent 84dcf5279f
commit ee78b46e8a
1 changed files with 3 additions and 0 deletions

View File

@ -1320,6 +1320,9 @@ static void *shader_sm4_init(const DWORD *byte_code, size_t byte_code_size,
{
struct wined3d_shader_signature_element *e = &output_signature->elements[i];
if (priv->shader_version.type == WINED3D_SHADER_TYPE_PIXEL
&& _strnicmp(e->semantic_name, "SV_TARGET", -1))
continue;
if (e->register_idx >= ARRAY_SIZE(priv->output_map))
{
WARN("Invalid output index %u.\n", e->register_idx);