Merge pull request #680 from EatCodeSleep2/fix/wine-staging-upload-128
GPU: use the host upload path for texture staging copies
This commit is contained in:
commit
6a7c729cf9
1 file changed
+3
-1
@@ -525,7 +525,9 @@ extern "system" fn copy_texture_region(
|
|||||||
let Some((buffer, staging)) = list.upload(host, bytes) else {
|
let Some((buffer, staging)) = list.upload(host, bytes) else {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
list.defer_copy(staging, data, bytes as usize);
|
// The list owns this mapped D3D12 upload buffer. Wine can report
|
||||||
|
// its address as MEM_FREE, so use the host-upload path.
|
||||||
|
list.defer_fill(staging, data, bytes as usize);
|
||||||
from.resource = buffer.as_raw().cast_const().cast();
|
from.resource = buffer.as_raw().cast_const().cast();
|
||||||
from.footprint.offset = 0;
|
from.footprint.offset = 0;
|
||||||
#[cfg(feature = "diagnostics")]
|
#[cfg(feature = "diagnostics")]
|
||||||
|
|||||||
Reference in new issue
Block a user