More PAL related changes required for restricted platforms. (#4037)
Signed-off-by: bosnichd <bosnichd@amazon.com>
This commit is contained in:
+2
-4
@@ -15,7 +15,7 @@ namespace AZStd
|
||||
{
|
||||
namespace Platform
|
||||
{
|
||||
void PostThreadRun();
|
||||
unsigned __stdcall PostThreadRun();
|
||||
HANDLE CreateThread(unsigned stackSize, unsigned (__stdcall* threadRunFunction)(void*), AZStd::Internal::thread_info* ti, unsigned int* id);
|
||||
unsigned HardwareConcurrency();
|
||||
void SetThreadName(HANDLE hThread, const char* threadName);
|
||||
@@ -40,9 +40,7 @@ namespace AZStd
|
||||
ThreadEventBus::Broadcast(&ThreadEventBus::Events::OnThreadExit, this_thread::get_id()); // goes to client listeners
|
||||
ThreadDrillerEventBus::Broadcast(&ThreadDrillerEventBus::Events::OnThreadExit, this_thread::get_id()); // goes to the profiler.
|
||||
|
||||
Platform::PostThreadRun();
|
||||
|
||||
return 0;
|
||||
return Platform::PostThreadRun();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+2
-1
@@ -16,9 +16,10 @@ namespace AZStd
|
||||
{
|
||||
namespace Platform
|
||||
{
|
||||
void PostThreadRun()
|
||||
unsigned __stdcall PostThreadRun()
|
||||
{
|
||||
_endthreadex(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
HANDLE CreateThread(unsigned stackSize, unsigned (__stdcall* threadRunFunction)(void*), AZStd::Internal::thread_info* ti, unsigned int* id)
|
||||
|
||||
@@ -325,5 +325,10 @@ namespace AZ
|
||||
|
||||
return formatsList;
|
||||
}
|
||||
|
||||
void Device::BeginFrameInternal()
|
||||
{
|
||||
m_commandQueueContext.Begin();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -189,11 +189,6 @@ namespace AZ
|
||||
m_commandQueueContext.UpdateCpuTimingStatistics(cpuTimingStatistics);
|
||||
}
|
||||
|
||||
void Device::BeginFrameInternal()
|
||||
{
|
||||
m_commandQueueContext.Begin();
|
||||
}
|
||||
|
||||
void Device::EndFrameInternal()
|
||||
{
|
||||
AZ_TRACE_METHOD();
|
||||
|
||||
@@ -262,7 +262,11 @@ namespace AZ
|
||||
|
||||
bool PipelineLibrary::IsMergeRequired() const
|
||||
{
|
||||
#if defined (AZ_DX12_USE_PIPELINE_LIBRARY)
|
||||
return !m_pipelineStates.empty();
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user