Skip to content

PIX: Cp of "Prevent ray query handle writes to PIX debug UAV"#6362

Merged
jeffnn merged 1 commit intomicrosoft:release-1.8.2403from
jeffnn:PIX_CP_RayTraceHandle
Feb 28, 2024
Merged

PIX: Cp of "Prevent ray query handle writes to PIX debug UAV"#6362
jeffnn merged 1 commit intomicrosoft:release-1.8.2403from
jeffnn:PIX_CP_RayTraceHandle

Conversation

@jeffnn
Copy link
Copy Markdown
Collaborator

@jeffnn jeffnn commented Feb 27, 2024

Original PR:
#6309

Original commit:
5a31785

AllocateRayQuery returns an int, but it's not really an int: it's a
handle to the query. Thus, it's not sensible for the PIX debugging
instrumentation to attempt to write it out to the debug-data-UAV. The
previous code did an explicit check against the type of the value to be
written, but if that value is actually a phi itself, then that check
would fail. So now we recursively run through the phi values looking to
see if any of its antecedents are a phi, and if so, refuse to send its
value to the UAV.

(cherry picked from commit 5a31785)

…nce the value isn't really an int, it's a handle) (microsoft#6309)

AllocateRayQuery returns an int, but it's not really an int: it's a
handle to the query. Thus, it's not sensible for the PIX debugging
instrumentation to attempt to write it out to the debug-data-UAV. The
previous code did an explicit check against the type of the value to be
written, but if that value is actually a phi itself, then that check
would fail. So now we recursively run through the phi values looking to
see if any of its antecedents are a phi, and if so, refuse to send its
value to the UAV.

(cherry picked from commit 5a31785)
@jeffnn jeffnn self-assigned this Feb 27, 2024
@jeffnn jeffnn requested a review from a team as a code owner February 27, 2024 21:15
@jeffnn jeffnn merged commit 12b838f into microsoft:release-1.8.2403 Feb 28, 2024
@jeffnn jeffnn deleted the PIX_CP_RayTraceHandle branch February 28, 2024 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants