Skip to content

vkd3d-shader/hlsl: Lower separate SampleGrad() for SM1.

Like other sampling methods, fxc compiles this method for SM1 profiles even without the backcompat option.

Furthermore, it even does it on ps_2_0 despite the fact that it maps to a texldd instruction, which is not available on plain ps_2_0, nor ps_2_b, only on ps_2_a and ps_3_0 according to documentation.

It is worth mentioning that the additional offset parameter is not supported when lowering for any SM1 profile, so 3/3 is introduced.

I suspect, but I am not sure that this is related to https://bugs.winehq.org/show_bug.cgi?id=57414

Merge request reports

Loading