intel/fs: Properly stride NULL replacement regs in DCE
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>
This commit is contained in:
@@ -96,7 +96,8 @@ fs_visitor::dead_code_eliminate()
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user