forked from microsoft/DirectXShaderCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PIX: Shader debug: don't instrument ray query handles (microsoft#3434)
* checkpoint * Move helper to new file Co-authored-by: Jeff Noyle <[email protected]>
- Loading branch information
Showing
5 changed files
with
69 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// PixPassHelpers.cpp // | ||
// Copyright (C) Microsoft Corporation. All rights reserved. // | ||
// This file is distributed under the University of Illinois Open Source // | ||
// License. See LICENSE.TXT for details. // | ||
// // | ||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
#include "dxc/DXIL/DxilOperations.h" | ||
#include "llvm/IR/Module.h" | ||
#include "llvm/Pass.h" | ||
|
||
namespace PIXPassHelpers | ||
{ | ||
bool IsAllocateRayQueryInstruction(llvm::Value* Val) { | ||
if (llvm::Instruction* Inst = llvm::dyn_cast<llvm::Instruction>(Val)) { | ||
return hlsl::OP::IsDxilOpFuncCallInst(Inst, hlsl::OP::OpCode::AllocateRayQuery); | ||
} | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// PixPassHelpers.h // | ||
// Copyright (C) Microsoft Corporation. All rights reserved. // | ||
// This file is distributed under the University of Illinois Open Source // | ||
// License. See LICENSE.TXT for details. // | ||
// // | ||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
#pragma once | ||
|
||
namespace PIXPassHelpers | ||
{ | ||
bool IsAllocateRayQueryInstruction(llvm::Value* Val); | ||
} |