diff options
author | Maxence Le Dore <[email protected]> | 2012-12-13 05:17:35 +0100 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-12-13 19:40:28 +0000 |
commit | 6d7d821e3df7dde45fbd7ae2988eee8e94baa14f (patch) | |
tree | 5e2e3a4b1e0513a1376652ca56e68b715d3eaa0f /src/gallium/drivers/r600/r600_shader.c | |
parent | c68babfc3c7b65dd53697528781bd6b6186f5190 (diff) |
r600g/radeonsi: Silence warnings
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 102d1c61118..f0072046e28 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -516,10 +516,11 @@ static int r600_vtx_from_byte_stream(struct r600_shader_ctx *ctx, static int r600_export_from_byte_stream(struct r600_shader_ctx *ctx, unsigned char * bytes, unsigned bytes_read) { + uint32_t word0 = 0, word1 = 0; struct r600_bytecode_output output; memset(&output, 0, sizeof(struct r600_bytecode_output)); - uint32_t word0 = i32_from_byte_stream(bytes, &bytes_read); - uint32_t word1 = i32_from_byte_stream(bytes, &bytes_read); + word0 = i32_from_byte_stream(bytes, &bytes_read); + word1 = i32_from_byte_stream(bytes, &bytes_read); if (ctx->bc->chip_class >= EVERGREEN) eg_bytecode_export_read(&output, word0,word1); else |