ryta1203

CAL and ISA question

Discussion created by ryta1203 on Mar 10, 2009
Latest reply on Mar 11, 2009 by ryta1203

I don't get an output when using ISA but I do when using IL. For the IL I use calclCompile and for the ISA I use calclAssembleObject, otherwise, all the code is the same. The ISA was generated using KSA.

IL:

 

const char ILkernel[] =

"il_ps_2_0\n"

"dcl_input_position_interp(linear) v0.x\n"

"dcl_output_generic o0\n"

"dcl_resource_id(0)_type(1d,unnorm)_fmtx(float)_fmty(float)_fmtz(float)_fmtw(float)\n"

"sample_resource(0)_sampler(0) r0, v0.x\n"

"mul o0, r0, r0\n"

"ret_dyn\n"

"end\n";

 

ISA:

 

 

 

 

 

const

 

 

char

ILkernel[] =

"00 TEX: ADDR(48) CNT(1) VALID_PIX"

" 0 SAMPLE R0.x___, R0.xyxx, t0, s0 UNNORM(XYZW) "

"01 ALU: ADDR(32) CNT(2) "

" 1 x: MUL_e R0.x, R0.x, R0.x "

 

 

 

" y: MOV R0.y, 0.0f"

 

 

 

"02 EXP_DONE: PIX0, R0.xyyy"

"END_OF_PROGRAM"

 

There has to be something obviuos I am missing here!? Also, the KSA generated IL doesn't work either, which seems to be a problem since AMD says that you can use the KSA to generate your kernels from Brook+ and use the generated IL in CAL.

 

 





 

 

 

 







 

Outcomes