}
}
}
+ if (param->rel)
+ src = ureg_src_indirect(src, tx_src_param(tx, param->rel));
break;
case D3DSPR_PREDICATE:
if (ureg_dst_is_undef(tx->regs.predicate)) {
src = ureg_src_register(TGSI_FILE_SAMPLER, param->idx);
break;
case D3DSPR_CONST:
- if (param->rel)
- tx->indirect_const_access = TRUE;
if (param->rel || !tx_lconstf(tx, &src, param->idx)) {
if (!param->rel)
nine_info_mark_const_f_used(tx->info, param->idx);
}
} else
src = NINE_CONSTANT_SRC(param->idx);
+ if (param->rel) {
+ tx->indirect_const_access = TRUE;
+ src = ureg_src_indirect(src, tx_src_param(tx, param->rel));
+ }
}
if (!IS_VS && tx->version.major < 2) {
/* ps 1.X clamps constants */
default:
assert(!"invalid src D3DSPR");
}
- if (param->rel)
- src = ureg_src_indirect(src, tx_src_param(tx, param->rel));
switch (param->mod) {
case NINED3DSPSM_DW: