[GPU] Make resolve EDRAM binding DS 0 and rename it

Ordering the descriptor sets by the change frequency on Vulkan, in increasing order (the opposite of D3D12 root signatures). The EDRAM binding never changes there (always one storage buffer), while the destination buffer binding may become changeable in the future (to split dispatches if exceeding `maxStorageBufferRange`, for example).
This commit is contained in:
Triang3l
2022-06-20 12:15:52 +03:00
parent 9b83d3d0f4
commit b61953374e
56 changed files with 47980 additions and 47994 deletions

View File

@@ -10,7 +10,7 @@
#define XE_RESOLVE_CLEAR
#include "resolve.xesli"
xesl_writeTypedStorageBuffer_declare(xesl_uint4, xe_resolve_dest, set=0,
xesl_writeTypedStorageBuffer_declare(xesl_uint4, xe_resolve_edram, set=0,
binding=0, u0, space0)
#define xesl_localSize_x 8
#define xesl_localSize_y 8
@@ -18,7 +18,7 @@ xesl_writeTypedStorageBuffer_declare(xesl_uint4, xe_resolve_dest, set=0,
xesl_entry_bindings_begin_compute
XE_RESOLVE_PUSH_CONSTANTS_BINDING
xesl_entry_binding_next
xesl_writeTypedStorageBuffer_binding(xesl_uint4, xe_resolve_dest,
xesl_writeTypedStorageBuffer_binding(xesl_uint4, xe_resolve_edram,
buffer(1))
xesl_entry_bindings_end_inputs_begin_compute
xesl_entry_input_globalInvocationID
@@ -43,8 +43,8 @@ xesl_entry_inputs_end_code_begin_compute
kXenosMsaaSamples_1X, resolve_info.edram_is_depth, 0u, 0u,
resolve_info.resolution_scale)
>> 2u;
xesl_writeTypedStorageBufferStore(xe_resolve_dest, address_int4s,
xesl_writeTypedStorageBufferStore(xe_resolve_edram, address_int4s,
resolve_info.clear_value.xxxx);
xesl_writeTypedStorageBufferStore(xe_resolve_dest, address_int4s + 1u,
xesl_writeTypedStorageBufferStore(xe_resolve_edram, address_int4s + 1u,
resolve_info.clear_value.xxxx);
xesl_entry_code_end_compute