Skip to content

Commit

Permalink
Reproduce GPU hang.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKristian-Work committed Feb 6, 2025
1 parent 0617b40 commit 57b27c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/d3d12_sparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ void test_update_tile_mappings_remap_stress(void)
ID3D12Resource_GetGPUVirtualAddress(resource) + OFFSET_INTO_PAGE);
ID3D12GraphicsCommandList_SetComputeRootUnorderedAccessView(context.list, 1,
ID3D12Resource_GetGPUVirtualAddress(output_resource));
ID3D12GraphicsCommandList_Dispatch(context.list, 1, 1, 1);
ID3D12GraphicsCommandList_Dispatch(context.list, 64, 1, 1);
transition_resource_state(context.list, output_resource, D3D12_RESOURCE_STATE_UNORDERED_ACCESS,
D3D12_RESOURCE_STATE_COPY_SOURCE);
get_buffer_readback_with_command_list(output_resource, DXGI_FORMAT_R32_UINT, &rb, context.queue, context.list);
Expand Down
8 changes: 4 additions & 4 deletions tests/shaders/sparse/headers/update_tile_mappings.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
static const DWORD update_tile_mappings_code_dxbc[] =
{
0x43425844, 0xa8625c41, 0xfd85df89, 0xcedb7945, 0x0e3444ea, 0x00000001, 0x00000108, 0x00000003,
0x43425844, 0x37ca9b62, 0x19067318, 0xe3db2632, 0x5a979287, 0x00000001, 0x00000108, 0x00000003,
0x0000002c, 0x0000003c, 0x0000004c, 0x4e475349, 0x00000008, 0x00000000, 0x00000008, 0x4e47534f,
0x00000008, 0x00000000, 0x00000008, 0x58454853, 0x000000b4, 0x00050050, 0x0000002d, 0x0100086a,
0x040000a2, 0x00107000, 0x00000000, 0x00000004, 0x0400009e, 0x0011e000, 0x00000000, 0x00000004,
0x0200005f, 0x00020012, 0x02000068, 0x00000001, 0x0400009b, 0x00000040, 0x00000001, 0x00000001,
0x06000029, 0x00100012, 0x00000000, 0x0002000a, 0x00004001, 0x0000000e, 0x8b0000a7, 0x80002302,
0x0200005f, 0x00021012, 0x02000068, 0x00000001, 0x0400009b, 0x00000001, 0x00000001, 0x00000001,
0x06000029, 0x00100012, 0x00000000, 0x0002100a, 0x00004001, 0x0000000e, 0x8b0000a7, 0x80002302,
0x00199983, 0x00100012, 0x00000000, 0x0010000a, 0x00000000, 0x00004001, 0x00000000, 0x00107006,
0x00000000, 0x080000a8, 0x0011e012, 0x00000000, 0x0002000a, 0x00004001, 0x00000000, 0x0010000a,
0x00000000, 0x080000a8, 0x0011e012, 0x00000000, 0x0002100a, 0x00004001, 0x00000000, 0x0010000a,
0x00000000, 0x0100003e,
};
#ifdef __GNUC__
Expand Down
8 changes: 4 additions & 4 deletions tests/shaders/sparse/update_tile_mappings.cs_5_0.hlsl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
StructuredBuffer<uint> tiled_buffer : register(t0);
RWStructuredBuffer<uint> out_buffer : register(u0);

[numthreads(64, 1, 1)]
void main(uint3 thread_id : SV_DispatchThreadID)
[numthreads(1, 1, 1)]
void main(uint3 group_id : SV_GroupID)
{
out_buffer[thread_id.x] = tiled_buffer[16384 * thread_id.x];
}
out_buffer[group_id.x] = tiled_buffer[16384 * group_id.x];
}

0 comments on commit 57b27c1

Please sign in to comment.