mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
i965/fs: Fix an uninitialized value warnings
Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
9750ae8ca9
commit
83669fac9d
1 changed files with 4 additions and 3 deletions
|
|
@ -2975,10 +2975,11 @@ fs_visitor::lower_load_payload()
|
||||||
|
|
||||||
foreach_block_and_inst_safe (block, fs_inst, inst, cfg) {
|
foreach_block_and_inst_safe (block, fs_inst, inst, cfg) {
|
||||||
int dst_reg;
|
int dst_reg;
|
||||||
if (inst->dst.file == MRF) {
|
} if (inst->dst.file == GRF) {
|
||||||
dst_reg = inst->dst.reg;
|
|
||||||
} else if (inst->dst.file == GRF) {
|
|
||||||
dst_reg = vgrf_to_reg[inst->dst.reg];
|
dst_reg = vgrf_to_reg[inst->dst.reg];
|
||||||
|
} else {
|
||||||
|
/* MRF */
|
||||||
|
dst_reg = inst->dst.reg;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inst->dst.file == MRF || inst->dst.file == GRF) {
|
if (inst->dst.file == MRF || inst->dst.file == GRF) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue