mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +01:00
[d3d9] Mark non default resources as dirty by default
This commit is contained in:
parent
8159e87331
commit
dba7525954
@ -14,6 +14,9 @@ namespace dxvk {
|
|||||||
m_stagingBuffer = CreateStagingBuffer();
|
m_stagingBuffer = CreateStagingBuffer();
|
||||||
|
|
||||||
m_sliceHandle = GetMapBuffer()->getSliceHandle();
|
m_sliceHandle = GetMapBuffer()->getSliceHandle();
|
||||||
|
|
||||||
|
if (m_desc.Pool != D3DPOOL_DEFAULT)
|
||||||
|
m_dirtyRange = D3D9Range(0, m_desc.Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,6 +21,13 @@ namespace dxvk {
|
|||||||
AddDirtyBox(nullptr, i);
|
AddDirtyBox(nullptr, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_desc.Pool != D3DPOOL_DEFAULT) {
|
||||||
|
const uint32_t subresources = CountSubresources();
|
||||||
|
for (uint32_t i = 0; i < subresources; i++) {
|
||||||
|
SetNeedsUpload(i, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_mapping = pDevice->LookupFormat(m_desc.Format);
|
m_mapping = pDevice->LookupFormat(m_desc.Format);
|
||||||
|
|
||||||
m_mapMode = DetermineMapMode();
|
m_mapMode = DetermineMapMode();
|
||||||
|
@ -5008,7 +5008,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
void D3D9DeviceEx::UploadManagedTexture(D3D9CommonTexture* pResource) {
|
void D3D9DeviceEx::UploadManagedTexture(D3D9CommonTexture* pResource) {
|
||||||
for (uint32_t subresource = 0; subresource < pResource->CountSubresources(); subresource++) {
|
for (uint32_t subresource = 0; subresource < pResource->CountSubresources(); subresource++) {
|
||||||
if (!pResource->NeedsUpload(subresource))
|
if (!pResource->NeedsUpload(subresource) || pResource->GetBuffer(subresource) == nullptr)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
this->FlushImage(pResource, subresource);
|
this->FlushImage(pResource, subresource);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user