P4 to Git Change 1288098 by jsjodin@jsjodin-git2p4-llvm on 2016/07/06 18:12:30
SWDEV-3 - [codeview] Don't record UDTs for anonymous structs MSVC makes up names for these anonymous structs, but we don't (yet). Eventually Clang should use getTypedefNameForAnonDecl() to put some name in the debug info, and we can update the test case when that happens. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274391 91177308-0d34-0410-b5e6-96231b3b80d8 GitHash: 613f19910964eb95a63bd906b0b75d9aa20d9b06 Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/llvm.git/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp#5 edit ... //depot/stg/opencl/drivers/opencl/compiler/llvm.git/test/DebugInfo/COFF/udts.ll#2 edit
Cette révision appartient à :
@@ -1072,10 +1072,9 @@ Resource::free()
|
||||
void
|
||||
Resource::writeRawData(
|
||||
VirtualGPU& gpu,
|
||||
size_t offset,
|
||||
size_t size,
|
||||
size_t size,
|
||||
const void* data,
|
||||
bool waitForEvent) const
|
||||
bool waitForEvent) const
|
||||
{
|
||||
GpuEvent event;
|
||||
|
||||
@@ -1083,8 +1082,11 @@ Resource::writeRawData(
|
||||
// size needs to be DWORD aligned
|
||||
assert((size & 3) == 0);
|
||||
gpu.eventBegin(MainEngine);
|
||||
//! @todo Remove cache flush
|
||||
//! It's a workaround for a PAL crash with embedded data, allocated before any command
|
||||
gpu.flushCUCaches();
|
||||
gpu.queue(MainEngine).addCmdMemRef(iMem());
|
||||
gpu.iCmd()->CmdUpdateMemory(*iMem(), offset, size, reinterpret_cast<const uint32_t*>(data));
|
||||
gpu.iCmd()->CmdUpdateMemory(*iMem(), 0, size, reinterpret_cast<const uint32_t*>(data));
|
||||
gpu.eventEnd(MainEngine, event);
|
||||
|
||||
setBusy(gpu, event);
|
||||
@@ -1936,7 +1938,7 @@ Resource::warmUpRenames(VirtualGPU& gpu)
|
||||
uint dummy = 0;
|
||||
const bool NoWait = false;
|
||||
// Write 0 for the buffer paging by VidMM
|
||||
writeRawData(gpu, 0, sizeof(dummy), &dummy, NoWait);
|
||||
writeRawData(gpu, sizeof(dummy), &dummy, NoWait);
|
||||
const bool Force = true;
|
||||
rename(gpu, Force);
|
||||
}
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur