aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-07-13 12:06:00 -0500
committerJason Ekstrand <[email protected]>2019-07-17 18:44:35 +0000
commit68a4c796d52cfcb19830525d904d0ce87d154275 (patch)
treeb1167fab58f6f8d5a7b3da81d854fc2d4b95af33 /src
parent28a808a11b0dac153115776b4cf1c32c73a891a4 (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/compiler/brw_fs_dead_code_eliminate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_fs_dead_code_eliminate.cpp b/src/intel/compiler/brw_fs_dead_code_eliminate.cpp
index 38ae1d41a6a..f3d510d36d0 100644
--- a/src/intel/compiler/brw_fs_dead_code_eliminate.cpp
+++ b/src/intel/compiler/brw_fs_dead_code_eliminate.cpp
@@ -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;
}
}