summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-09-30 15:41:24 -0700
committerJason Ekstrand <[email protected]>2014-09-30 17:26:05 -0700
commit83669fac9d6d3f0633d19dcfebe7cf0286e69ab7 (patch)
treeb5535f00e0e1dfaa45014b4b1d1ab9f7bda2394f /src/mesa
parent9750ae8ca91fd089a4affe6577265e77852ad548 (diff)
i965/fs: Fix an uninitialized value warnings
Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 19e9cb957e0..fd59ef80353 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2975,10 +2975,11 @@ fs_visitor::lower_load_payload()
foreach_block_and_inst_safe (block, fs_inst, inst, cfg) {
int dst_reg;
- if (inst->dst.file == MRF) {
- dst_reg = inst->dst.reg;
- } else if (inst->dst.file == GRF) {
+ } if (inst->dst.file == GRF) {
dst_reg = vgrf_to_reg[inst->dst.reg];
+ } else {
+ /* MRF */
+ dst_reg = inst->dst.reg;
}
if (inst->dst.file == MRF || inst->dst.file == GRF) {