[PATCH 3/5] wined3d: Skip non-color outputs in SM4 shader output mapping.

Matteo Bruni matteo.mystral at gmail.com
Wed Feb 9 13:21:29 CST 2022


On Wed, Feb 9, 2022 at 7:44 PM Henri Verbeet <hverbeet at gmail.com> wrote:
>
> On Wed, 9 Feb 2022 at 16:50, Matteo Bruni <mbruni at codeweavers.com> wrote:
> > @@ -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);
> > --
> Note that similar code exists in vkd3d-shader.

Right, I wrote basically the same patch for vkd3d-shader (and then
forgot about it). I'll send it soon.



More information about the wine-devel mailing list