This fixes some validation errors generated by certain D->W conversions
but is likely not a full solution. Calculating an actual register
stride is a far more complex problem in general and should probably be
handled by the brw_fs_generator.
Reviewed-by: Matt Turner <mattst88@gmail.com>
if (!result_live &&
(can_omit_write(inst) || can_eliminate(inst, flag_live))) {
- inst->dst = fs_reg(retype(brw_null_reg(), inst->dst.type));
+ inst->dst = fs_reg(spread(retype(brw_null_reg(), inst->dst.type),
+ inst->dst.stride));
progress = true;
}
}