[PATCH vkd3d 2/5] vkd3d-shader/hlsl: Perform a copy propagation pass.

Zebediah Figura (she/her) zfigura at codeweavers.com
Thu Nov 11 15:26:09 CST 2021


On 11/11/21 04:18, Matteo Bruni wrote:
>>> +        TRACE("load from %s[%d-%d] reconstructed to %s[%d %d %d %d]\n", var->name, offset,
>>> +              offset + type->dimx, buf, indices[0], indices[1], indices[2], indices[3]);
>>> +    }
>>> +
>>> +    if (!new_node)
>>> +        return false;
>>> +
>>> +    s = indices[0] | indices[1] << 2 | indices[2] << 4 | indices[3] << 6;
> 
> I guess we could introduce a small helper (hlsl_make_swizzle()?) for this.
> 

Yeah, we could probably use this, although it doesn't need to block this 
patch.



More information about the wine-devel mailing list