P4 to Git Change 1288095 by jsjodin@jsjodin-git2p4-llvm on 2016/07/06 18:08:24
SWDEV-3 - IR: Set TargetPrefix for some X86 and AArch64 intrinsics where it was missing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274390 91177308-0d34-0410-b5e6-96231b3b80d8 GitHash: f0a4c116041f7c2aef7796c8b067f0947b69602d Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/llvm.git/include/llvm/IR/IntrinsicsAArch64.td#2 edit ... //depot/stg/opencl/drivers/opencl/compiler/llvm.git/include/llvm/IR/IntrinsicsX86.td#2 edit
Este commit está contenido en:
@@ -79,7 +79,7 @@ public:
|
||||
|
||||
//! Flushes the current command buffer to HW
|
||||
//! Returns ID associated with the submission
|
||||
uint submit(bool forceFlush);
|
||||
uint submit();
|
||||
|
||||
bool flush();
|
||||
|
||||
@@ -401,17 +401,15 @@ public:
|
||||
//! Returns queue, associated with VirtualGPU
|
||||
Queue& queue(EngineType id) const { return *queues_[id]; }
|
||||
|
||||
void flushCUCaches(bool flushL2 = false) const
|
||||
void flushCUCaches() const
|
||||
{
|
||||
Pal::BarrierInfo barrier = {};
|
||||
barrier.pipePointWaitCount = 1;
|
||||
Pal::HwPipePoint point = Pal::HwPipePostCs;
|
||||
barrier.pPipePoints = &point;
|
||||
barrier.transitionCount = 1;
|
||||
uint32_t cacheMask = (flushL2) ? Pal::CoherCopy : Pal::CoherShader;
|
||||
Pal::BarrierTransition trans = { cacheMask, cacheMask,
|
||||
{ nullptr, { { Pal::ImageAspect::Color, 0, 0 }, 0, 0 },
|
||||
Pal::LayoutShaderRead, Pal::LayoutShaderRead}};
|
||||
Pal::BarrierTransition trans = {Pal::CoherShader, Pal::CoherShader,
|
||||
{nullptr, { {Pal::ImageAspect::Color, 0, 0}, 0, 0 }, Pal::LayoutShaderRead, Pal::LayoutShaderRead}};
|
||||
barrier.pTransitions = &trans;
|
||||
barrier.waitPoint = Pal::HwPipePreCs;
|
||||
iCmd()->CmdBarrier(barrier);
|
||||
@@ -422,17 +420,10 @@ public:
|
||||
profileEvent(engId, Begin);
|
||||
}
|
||||
|
||||
void eventEnd(EngineType engId, GpuEvent& event, bool forceExec = false) const {
|
||||
constexpr bool End = false;
|
||||
if (forceExec) {
|
||||
constexpr bool ForceFlush = true;
|
||||
event.id = queues_[engId]->submit(ForceFlush);
|
||||
profileEvent(engId, End);
|
||||
}
|
||||
else {
|
||||
profileEvent(engId, End);
|
||||
event.id = queues_[engId]->submit(GPU_FLUSH_ON_EXECUTION);
|
||||
}
|
||||
void eventEnd(EngineType engId, GpuEvent& event) const {
|
||||
const static bool End = false;
|
||||
profileEvent(engId, End);
|
||||
event.id = queues_[engId]->submit();
|
||||
event.engineId_ = engId;
|
||||
}
|
||||
|
||||
|
||||
Referencia en una nueva incidencia
Block a user