AGS_SDK icon indicating copy to clipboard operation
AGS_SDK copied to clipboard

d3d11 please remove the false dependency on UAV-related data if possible

Open TrianglesPCT opened this issue 7 years ago • 2 comments

All of the shader intrinsics seem to artificially depend on UAV-related data.

It doesn't really make any sense at all why min3 would be reading a UAV...

This prevents using the ddx/ddy instructions on anything that previously used any intrinsics, as it generates a silly error(x3662) based on this false UAV dependency.

I guess the UAV is used some sort of marker. Is there not some other way of doing this that wouldn't break so much stuff?

Thanks

TrianglesPCT avatar Sep 30 '18 12:09 TrianglesPCT

Hi,

The atomic op on the UAV is our mechanism for telling the shader compiler to insert the instructions into the shader code. The final ISA doesn't actually reference the UAV.

The ddx/ddy issue is an unfortunate side effect. We'll look into ways to get around this.

Which instructions do you need? min3 and max3 have been removed from the intrinsics in the latest AGS version because our shader compiler inserts them automatically now.

cheers, Gareth.

gareththomasamd avatar Oct 11 '18 08:10 gareththomasamd

Hi Gareth,

The most important instructions for me are:

  1. barycentrics (AmdDxExtShaderIntrinsics_IjBarycentricCoords)
  2. dynamic vertex pull (AmdDxExtShaderIntrinsics_VertexParameterComponent).

Thanks

TrianglesPCT avatar Oct 11 '18 17:10 TrianglesPCT