diff options
| author | DadaCap <dadacap@dadacap.me> | 2026-11-29 22:03:52 +0100 |
|---|---|---|
| committer | DadaCap <dadacap@dadacap.me> | 2026-11-29 22:43:46 +0100 |
| commit | d1539971a96ff2b4ee287489441909d343b9a89c (patch) | |
| tree | 79a70dad3c692cb18b99053071971c67dd706f54 /runtime/test/command_list_test.cpp | |
| parent | 7bbc1d223b062b4ed325180c55e85016323588a7 (diff) | |
runtime: programmable sample positions only for multisampled targets (RT-SAMPLE-LOCATIONS-MSAA-ONLY)
#778 filled the sample-locations grids from 1 sample upwards, so every 1x depth-stencil image was created
sample-locations compatible and carried sample locations through its transitions. D3D12 only has programmable
sample positions for multisampled targets; since #778 the world phase loses the device on an RTX 5080. Keep 1 sample
out (SamplePositions::programmable_count): 1x depth images are plain again, MSAA keeps the feature.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gt9hwPPpwX5RYWwXCnj43U
Diffstat (limited to 'runtime/test/command_list_test.cpp')
| -rw-r--r-- | runtime/test/command_list_test.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/test/command_list_test.cpp b/runtime/test/command_list_test.cpp index e6b299590..6fa886469 100644 --- a/runtime/test/command_list_test.cpp +++ b/runtime/test/command_list_test.cpp | |||
| @@ -284,6 +284,14 @@ int main() { | |||
| 284 | CHECK(!SamplePositions::valid_grid(8, 4)); | 284 | CHECK(!SamplePositions::valid_grid(8, 4)); |
| 285 | CHECK(!SamplePositions::valid_grid(3, 1)); | 285 | CHECK(!SamplePositions::valid_grid(3, 1)); |
| 286 | CHECK(!SamplePositions::valid_grid(4, 0)); | 286 | CHECK(!SamplePositions::valid_grid(4, 0)); |
| 287 | CHECK(!SamplePositions::programmable_count(1)); // a 1x depth image stays plain: no sample-locations flag or barrier info | ||
| 288 | CHECK(SamplePositions::programmable_count(2)); | ||
| 289 | CHECK(SamplePositions::programmable_count(4)); | ||
| 290 | CHECK(SamplePositions::programmable_count(8)); | ||
| 291 | CHECK(SamplePositions::programmable_count(16)); | ||
| 292 | CHECK(!SamplePositions::programmable_count(0)); | ||
| 293 | CHECK(!SamplePositions::programmable_count(3)); | ||
| 294 | CHECK(!SamplePositions::programmable_count(32)); | ||
| 287 | CommandList sampled; | 295 | CommandList sampled; |
| 288 | SamplePositions pattern{4, 4}; | 296 | SamplePositions pattern{4, 4}; |
| 289 | pattern.positions[15] = {-8, 7}; | 297 | pattern.positions[15] = {-8, 7}; |