mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
r600g: Silence uninitialized variable warnings.
Fixes these GCC warnings. r600_shader.c: In function 'tgsi_tex': r600_shader.c:1611: warning: 'src2_chan' may be used uninitialized in this function r600_shader.c:1611: warning: 'src_chan' may be used uninitialized in this function
This commit is contained in:
parent
311ab3d468
commit
84b2773f00
1 changed files with 5 additions and 0 deletions
|
|
@ -1631,6 +1631,11 @@ static int tgsi_tex(struct r600_shader_ctx *ctx)
|
|||
src_chan = 1;
|
||||
src2_chan = 2;
|
||||
break;
|
||||
default:
|
||||
assert(0);
|
||||
src_chan = 0;
|
||||
src2_chan = 0;
|
||||
break;
|
||||
}
|
||||
r = tgsi_src(ctx, &inst->Src[0], &alu.src[0]);
|
||||
if (r)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue