Mesa (master): i965/fs: Fix an uninitialized value warnings
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Wed Oct 1 00:21:55 UTC 2014
Module: Mesa
Branch: master
Commit: 6822f641c52651058703c6e5842f10bac8fabdd8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6822f641c52651058703c6e5842f10bac8fabdd8
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Tue Sep 30 15:41:24 2014 -0700
i965/fs: Fix an uninitialized value warnings
Signed-off-by: Jason Ekstrand <jason.ekstrand at intel.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 7 ++++---
1 file 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 19e9cb9..fd59ef8 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) {
More information about the mesa-commit
mailing list