mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 13:08:50 +01:00
[d3d11] Rename EmitCsChunkExternal for consistency
This commit is contained in:
parent
c678e8c803
commit
172d3450d1
@ -890,7 +890,7 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void D3D11ImmediateContext::EmitCsChunkExternal(
|
void D3D11ImmediateContext::InjectCsChunk(
|
||||||
DxvkCsChunkRef&& Chunk,
|
DxvkCsChunkRef&& Chunk,
|
||||||
bool Synchronize) {
|
bool Synchronize) {
|
||||||
// Do not update the sequence number when emitting a chunk
|
// Do not update the sequence number when emitting a chunk
|
||||||
|
@ -97,17 +97,17 @@ namespace dxvk {
|
|||||||
return m_multithread.AcquireLock();
|
return m_multithread.AcquireLock();
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitCsChunkExternal(
|
void InjectCsChunk(
|
||||||
DxvkCsChunkRef&& Chunk,
|
DxvkCsChunkRef&& Chunk,
|
||||||
bool Synchronize);
|
bool Synchronize);
|
||||||
|
|
||||||
template<typename Fn>
|
template<typename Fn>
|
||||||
void InjectCsCommand(
|
void InjectCs(
|
||||||
Fn&& Command) {
|
Fn&& Command) {
|
||||||
auto chunk = AllocCsChunk();
|
auto chunk = AllocCsChunk();
|
||||||
chunk->push(std::move(Command));
|
chunk->push(std::move(Command));
|
||||||
|
|
||||||
EmitCsChunkExternal(std::move(chunk), false);
|
InjectCsChunk(std::move(chunk), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -2778,7 +2778,7 @@ namespace dxvk {
|
|||||||
feedback = ctx->ensureImageCompatibility(cImage, usageInfo);
|
feedback = ctx->ensureImageCompatibility(cImage, usageInfo);
|
||||||
});
|
});
|
||||||
|
|
||||||
m_device->GetContext()->EmitCsChunkExternal(std::move(chunk), true);
|
m_device->GetContext()->InjectCsChunk(std::move(chunk), true);
|
||||||
|
|
||||||
if (!feedback) {
|
if (!feedback) {
|
||||||
Logger::err(str::format("Failed to lock image:"
|
Logger::err(str::format("Failed to lock image:"
|
||||||
@ -2802,7 +2802,7 @@ namespace dxvk {
|
|||||||
ctx->ensureBufferAddress(cBuffer);
|
ctx->ensureBufferAddress(cBuffer);
|
||||||
});
|
});
|
||||||
|
|
||||||
m_device->GetContext()->EmitCsChunkExternal(std::move(chunk), true);
|
m_device->GetContext()->InjectCsChunk(std::move(chunk), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -613,7 +613,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
// Initialize the image so that we can use it. Clearing
|
// Initialize the image so that we can use it. Clearing
|
||||||
// to black prevents garbled output for the first frame.
|
// to black prevents garbled output for the first frame.
|
||||||
m_parent->GetContext()->InjectCsCommand([
|
m_parent->GetContext()->InjectCs([
|
||||||
cSwapImage = m_swapImage
|
cSwapImage = m_swapImage
|
||||||
] (DxvkContext* ctx) {
|
] (DxvkContext* ctx) {
|
||||||
ctx->initImage(cSwapImage,
|
ctx->initImage(cSwapImage,
|
||||||
|
Loading…
Reference in New Issue
Block a user