Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry pick: PIX: Check for null (pass-through) HS case (microsoft#4094)
* PIX: Use DebugLoc for filenames instead of file list (microsoft#4077) This fix is for shaders (in particular those for materials from Unreal Engine) that feature #line directives. In the UE case, for example, there is one source file called hlsl.hlsl, with many #line directives pointing to the original HLSL files from which the source was assembled via UE's material system. At the start of shader debugging, all the filenames from DebugLoc are returned from code near here to PIX. Those filenames are the ones from the #line directives. The previous code would iterate over source file names (which in the UE case would be just hlsl.hlsl), and fail to find the filename that PIX is now asking to find the instructions for. Instead, we now gather the filenames from the DebugLoc. Note that the filename comparison is done after the line number comparison for performance's sake. * PIX: Check for null HS entry point (pass-through case) (microsoft#4092) With a null HS, just the patch constant function is present. PIX passes crash on the null, so this change suppresses that null return value. Co-authored-by: Jeff Noyle <[email protected]>
- Loading branch information