cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

ryta1203
Journeyman III

Hardware compilation failed

I get this message when trying to compile the following code, notice it has 17 inputs (I don't get this message if I scale back to 16 inputs), is 16 inputs the limit in IL?

 

il_ps_2_0

dcl_input_position_interp(linear_noperspective) v0.xy

dcl_output_generic o0

dcl_cb cb0[0]

dcl_resource_id(0)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(1)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(2)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(3)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(4)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(5)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(6)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(7)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(8)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(9)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(10)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(11)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(12)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(13)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(14)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(15)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

dcl_resource_id(16)_type(2d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)

sample_resource(0)_sampler(0) r0, v0.xy

sample_resource(1)_sampler(1) r1, v0.xy

sample_resource(2)_sampler(2) r2, v0.xy

sample_resource(3)_sampler(3) r3, v0.xy

sample_resource(4)_sampler(4) r4, v0.xy

sample_resource(5)_sampler(5) r5, v0.xy

sample_resource(6)_sampler(6) r6, v0.xy

sample_resource(7)_sampler(7) r7, v0.xy

sample_resource(8)_sampler(8) r8, v0.xy

sample_resource(9)_sampler(9) r9, v0.xy

sample_resource(10)_sampler(10) r10, v0.xy

sample_resource(11)_sampler(11) r11, v0.xy

sample_resource(12)_sampler(12) r12, v0.xy

sample_resource(13)_sampler(13) r13, v0.xy

sample_resource(14)_sampler(14) r14, v0.xy

sample_resource(15)_sampler(15) r15, v0.xy

sample_resource(16)_sampler(16) r16, v0.xy

add r17, r1, r0

add r18, r17, r2

add r19, r18, r3

add r20, r19, r4

add r21, r20, r5

add r22, r21, r6

add r23, r22, r7

add r24, r23, r8

add r25, r24, r9

add r26, r25, r10

add r27, r26, r11

add r28, r27, r12

add r29, r28, r13

add r30, r29, r14

add r31, r30, r15

add r32, r31, r16

add r33, r32, r31

add r34, r33, r32

add r35, r34, r33

add r36, r35, r34

add r37, r36, r35

add r38, r37, r36

add r39, r38, r37

add r40, r39, r38

add r41, r40, r39

add r42, r41, r40

add r43, r42, r41

add r44, r43, r42

add r45, r44, r43

add r46, r45, r44

add r47, r46, r45

add r48, r47, r46

add r49, r48, r47

add r50, r49, r48

add r51, r50, r49

add r52, r51, r50

add r53, r52, r51

add r54, r53, r52

add r55, r54, r53

add r56, r55, r54

add r57, r56, r55

add r58, r57, r56

add r59, r58, r57

add r60, r59, r58

add r61, r60, r59

add r62, r61, r60

add r63, r62, r61

add r64, r63, r62

add r65, r64, r63

add r66, r65, r64

add r67, r66, r65

add r68, r67, r66

add r69, r68, r67

add r70, r69, r68

add r71, r70, r69

add r72, r71, r70

add r73, r72, r71

add r74, r73, r72

add r75, r74, r73

add r76, r75, r74

add r77, r76, r75

add r78, r77, r76

add r79, r78, r77

add r80, r79, r78

add r81, r80, r79

add r82, r81, r80

add r83, r82, r81

add r84, r83, r82

mov o0, r84

ret_dyn

end

 



0 Likes
4 Replies
gaurav_garg
Adept I

There is a limit on number of samplers of 16. But, you can sample multiple inputs (limit of 128) with the same sampler, so you should be able to resolve this issue. Use the same sampler like this-

sample_resource(0)_sampler(0) r0, v0.xy

sample_resource(1)_sampler(0) r1, v0.xy

sample_resource(2)_sampler(0) r2, v0.xy

.........



0 Likes

gaurav,

  Thank you!

0 Likes

gaurav,

  Out of curiousity is there any known performance decrease or increase by using just 1 samper as opposed to several different ones or should the performance be the same?

0 Likes

It should be same....samplers are used to specify filtering mode.

0 Likes