[D3D12] Upload data to shared memory during frame (fixes swaying palms in CoD4)

This commit is contained in:
Triang3l
2018-08-16 12:07:53 +03:00
parent 1cec143810
commit c547851626
6 changed files with 184 additions and 249 deletions

View File

@@ -723,14 +723,14 @@ bool TextureCache::LoadTextureData(Texture* texture) {
// Request uploading of the texture data to the shared memory.
if (!texture->base_in_sync) {
if (!shared_memory_->UseRange(texture->key.base_page << 12,
texture->base_size)) {
if (!shared_memory_->RequestRange(texture->key.base_page << 12,
texture->base_size, command_list)) {
return false;
}
}
if (!texture->mips_in_sync) {
if (!shared_memory_->UseRange(texture->key.mip_page << 12,
texture->mip_size)) {
if (!shared_memory_->RequestRange(texture->key.mip_page << 12,
texture->mip_size, command_list)) {
return false;
}
}