0 Replies Latest reply on Feb 4, 2009 8:08 AM by kos

    Memory model problem 2


      I have a kernel :

      "dcl_cb cb0[1]\n"
      "dcl_input_interp(linear) v0.xy\n"
      "dcl_output_generic o0.x___\n"
      "dcl_literal l0, 0x00000000, 0x00000000, 0x00000000, 0x00000000\n"
      "dcl_literal l1, 0x3F3900000, 0x3F3900000, 0x3F3900000, 0x3F3900000\n"
      "dcl_literal l2, 0x41000000, 0x41000000, 0x41000000, 0x41000000\n"
      "dcl_literal l3, 0x3F000000, 0x3F000000, 0x3F000000, 0x3F000000\n"
      "mov r2.x, cb0[0].x\n"
      "mov r2.y, cb0[0].x\n"
      "sample_resource(0)_sampler(0) r0.xy__, r2.xy\n"
      "mov o0.x___, r0.x\n"

      and when cb0[0].x == 1, result looks like what i need, but with any other value it returns 0.