Module: Mesa
Branch: main
Commit: 12082905582fe291da939f024661f2c505111dc2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=12082905582fe291da939f024661f2c505111dc2

Author: BillKristiansen <[email protected]>
Date:   Tue May 18 10:58:35 2021 -0700

d3d12: Sets all SRV descriptors as data-static

As Mesa d3d12 is currently implemented, all resource data is static
at the time a SRV or CBV is created.  Therefore, it makes sense for all
descriptors to use the DESCRIPTORS_STATIC_KEEPING_BUFFER_BOUNDS_CHECKS
flag.  Use of this flag broadens debug validation and allows some
optimizations in the underlying driver.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10871>

---

 src/gallium/drivers/d3d12/d3d12_root_signature.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/d3d12/d3d12_root_signature.cpp 
b/src/gallium/drivers/d3d12/d3d12_root_signature.cpp
index 14a03b39a31..bda3e41b1b6 100644
--- a/src/gallium/drivers/d3d12/d3d12_root_signature.cpp
+++ b/src/gallium/drivers/d3d12/d3d12_root_signature.cpp
@@ -84,7 +84,7 @@ init_range_root_param(D3D12_ROOT_PARAMETER1 *param,
    if (type == D3D12_DESCRIPTOR_RANGE_TYPE_SAMPLER)
       range->Flags = D3D12_DESCRIPTOR_RANGE_FLAG_NONE;
    else
-      range->Flags = D3D12_DESCRIPTOR_RANGE_FLAG_DATA_VOLATILE;
+      range->Flags = 
D3D12_DESCRIPTOR_RANGE_FLAG_DESCRIPTORS_STATIC_KEEPING_BUFFER_BOUNDS_CHECKS;
    range->OffsetInDescriptorsFromTableStart = 
D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND;
 
    param->ParameterType = D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to