Skip to content

Commit

Permalink
debug_printf: Skip naga tests on DXC
Browse files Browse the repository at this point in the history
  • Loading branch information
exrook committed Jan 25, 2024
1 parent b010834 commit 3a78dca
Show file tree
Hide file tree
Showing 45 changed files with 116 additions and 19 deletions.
1 change: 1 addition & 0 deletions naga/hlsl-snapshots/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,5 @@ pub struct ConfigItem {
/// See also
/// <https://learn.microsoft.com/en-us/windows/win32/direct3dtools/dx-graphics-tools-fxc-using>.
pub target_profile: String,
pub debug_printf: bool,
}
3 changes: 3 additions & 0 deletions naga/tests/out/hlsl/access.ron
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@
(
entry_point:"foo_vert",
target_profile:"vs_5_1",
debug_printf:false,
),
],
fragment:[
(
entry_point:"foo_frag",
target_profile:"ps_5_1",
debug_printf:false,
),
],
compute:[
(
entry_point:"assign_through_ptr",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/array-in-ctor.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"cs_main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/atomicOps.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"cs_main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/binding-arrays.ron
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
(
entry_point:"main",
target_profile:"ps_5_1",
debug_printf:false,
),
],
compute:[
Expand Down
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/bitcast.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/bits.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/boids.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/break-if.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/collatz.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/const-exprs.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/constructors.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/control-flow.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 0 additions & 1 deletion naga/tests/out/hlsl/debug-printf-s.hlsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
void main_1()
{
printf("%d",42);
return;
}

Expand Down
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/debug-printf-s.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
5 changes: 5 additions & 0 deletions naga/tests/out/hlsl/debug-printf.hlsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[numthreads(1, 1, 1)]
void main()
{
return;
}
13 changes: 13 additions & 0 deletions naga/tests/out/hlsl/debug-printf.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(
vertex:[
],
fragment:[
],
compute:[
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/do-while.ron
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
(
entry_point:"main",
target_profile:"ps_5_1",
debug_printf:false,
),
],
compute:[
Expand Down
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/dualsource.ron
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
(
entry_point:"main",
target_profile:"ps_5_1",
debug_printf:false,
),
],
compute:[
Expand Down
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/empty-global-name.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/empty.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/f64.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
2 changes: 2 additions & 0 deletions naga/tests/out/hlsl/fragment-output.ron
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
(
entry_point:"main_vec4vec3_",
target_profile:"ps_5_1",
debug_printf:false,
),
(
entry_point:"main_vec2scalar",
target_profile:"ps_5_1",
debug_printf:false,
),
],
compute:[
Expand Down
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/functions.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/globals.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/hlsl-keyword.ron
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
(
entry_point:"fs_main",
target_profile:"ps_5_1",
debug_printf:false,
),
],
compute:[
Expand Down
8 changes: 8 additions & 0 deletions naga/tests/out/hlsl/image.ron
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,46 @@
(
entry_point:"queries",
target_profile:"vs_5_1",
debug_printf:false,
),
(
entry_point:"levels_queries",
target_profile:"vs_5_1",
debug_printf:false,
),
],
fragment:[
(
entry_point:"texture_sample",
target_profile:"ps_5_1",
debug_printf:false,
),
(
entry_point:"texture_sample_comparison",
target_profile:"ps_5_1",
debug_printf:false,
),
(
entry_point:"gather",
target_profile:"ps_5_1",
debug_printf:false,
),
(
entry_point:"depth_no_comparison",
target_profile:"ps_5_1",
debug_printf:false,
),
],
compute:[
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
(
entry_point:"depth_load",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
4 changes: 4 additions & 0 deletions naga/tests/out/hlsl/interface.ron
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,26 @@
(
entry_point:"vertex",
target_profile:"vs_5_1",
debug_printf:false,
),
(
entry_point:"vertex_two_structs",
target_profile:"vs_5_1",
debug_printf:false,
),
],
fragment:[
(
entry_point:"fragment",
target_profile:"ps_5_1",
debug_printf:false,
),
],
compute:[
(
entry_point:"compute",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
2 changes: 2 additions & 0 deletions naga/tests/out/hlsl/interpolate.ron
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
(
entry_point:"vert_main",
target_profile:"vs_5_1",
debug_printf:false,
),
],
fragment:[
(
entry_point:"frag_main",
target_profile:"ps_5_1",
debug_printf:false,
),
],
compute:[
Expand Down
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/inv-hyperbolic-trig-functions.ron
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
(
entry_point:"main",
target_profile:"ps_5_1",
debug_printf:false,
),
],
compute:[
Expand Down
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/math-functions.ron
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
(
entry_point:"main",
target_profile:"ps_5_1",
debug_printf:false,
),
],
compute:[
Expand Down
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/operators.ron
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
(
entry_point:"main",
target_profile:"cs_5_1",
debug_printf:false,
),
],
)
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/padding.ron
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
(
entry_point:"vertex",
target_profile:"vs_5_1",
debug_printf:false,
),
],
fragment:[
Expand Down
2 changes: 2 additions & 0 deletions naga/tests/out/hlsl/push-constants.ron
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
(
entry_point:"vert_main",
target_profile:"vs_5_1",
debug_printf:false,
),
],
fragment:[
(
entry_point:"main",
target_profile:"ps_5_1",
debug_printf:false,
),
],
compute:[
Expand Down
1 change: 1 addition & 0 deletions naga/tests/out/hlsl/quad-vert.ron
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
(
entry_point:"main",
target_profile:"vs_5_1",
debug_printf:false,
),
],
fragment:[
Expand Down
3 changes: 3 additions & 0 deletions naga/tests/out/hlsl/quad.ron
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
(
entry_point:"vert_main",
target_profile:"vs_5_1",
debug_printf:false,
),
],
fragment:[
(
entry_point:"frag_main",
target_profile:"ps_5_1",
debug_printf:false,
),
(
entry_point:"fs_extra",
target_profile:"ps_5_1",
debug_printf:false,
),
],
compute:[
Expand Down
Loading

0 comments on commit 3a78dca

Please sign in to comment.