[PATCH 2/5] wined3d: Implement SM4 discard in the GLSL shader backend.

Henri Verbeet hverbeet at gmail.com
Mon Jun 15 12:32:15 CDT 2015

On 15 June 2015 at 18:11, Matteo Bruni <matteo.mystral at gmail.com> wrote:
> FWIW, https://msdn.microsoft.com/en-us/library/windows/desktop/hh446968%28v=vs.85%29.aspx
> mentions two variants of the discard instruction. Any clue how is that
> _z vs _nz part encoded?
Yeah, there are a couple of other instructions that work like that as
well, e.g. if and break. I'd expect the comparison type to be in the
same place as e.g. WINED3D_SM4_RESOURCE_TYPE_MASK and
WINED3D_SM4_PRIMITIVE_TYPE_MASK, but I haven't specifically searched
for it.

More information about the wine-devel mailing list