mojoshader.c
changeset 1061 dbf2735676ae
parent 1060 4cdf5a3ceb03
child 1062 ea5c89942bd3
equal deleted inserted replaced
1060:4cdf5a3ceb03 1061:dbf2735676ae
  5706             fail(ctx, "invalid register for relative address");
  5706             fail(ctx, "invalid register for relative address");
  5707 
  5707 
  5708         if (!replicate_swizzle(relswiz))
  5708         if (!replicate_swizzle(relswiz))
  5709             fail(ctx, "relative address needs replicate swizzle");
  5709             fail(ctx, "relative address needs replicate swizzle");
  5710 
  5710 
       
  5711         info->relative_component = (relswiz & 0x3);
       
  5712 
  5711         if (info->regtype == REG_TYPE_INPUT)
  5713         if (info->regtype == REG_TYPE_INPUT)
  5712         {
  5714         {
  5713             if ( (shader_is_pixel(ctx)) || (!shader_version_atleast(ctx, 3, 0)) )
  5715             if ( (shader_is_pixel(ctx)) || (!shader_version_atleast(ctx, 3, 0)) )
  5714                 fail(ctx, "relative addressing of input registers not supported in this shader model");
  5716                 fail(ctx, "relative addressing of input registers not supported in this shader model");
  5715             ctx->have_relative_input_registers = 1;
  5717             ctx->have_relative_input_registers = 1;