[D3D12] Fix over-invalidation of bulk fetch register writes
Co-authored-by: Herman S. <429230+has207@users.noreply.github.com>
This commit is contained in:
committed by
Radosław Gliński
parent
197929d967
commit
95545f8e76
@@ -2079,7 +2079,8 @@ void D3D12CommandProcessor::WriteFetchFromMem(uint32_t start_index,
|
||||
((start_index - XE_GPU_REG_SHADER_CONSTANT_FETCH_00_0) / 6);
|
||||
uint32_t last_fetch = // i think last_fetch should be inclusive if its modulo
|
||||
// is nz...
|
||||
(((start_index + num_registers) - XE_GPU_REG_SHADER_CONSTANT_FETCH_00_0) /
|
||||
(((start_index + num_registers - 1) -
|
||||
XE_GPU_REG_SHADER_CONSTANT_FETCH_00_0) /
|
||||
6);
|
||||
texture_cache_->TextureFetchConstantsWritten(first_fetch, last_fetch);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user