summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_shader.c
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-06-06 18:31:00 -0400
committerTom Stellard <[email protected]>2012-06-21 20:42:07 +0000
commit5cd6ce939d1158d0ee3dd376e2c95aeff49c6e27 (patch)
treeae47e60f6137b1b4b67a835ed41699dfa704fa0d /src/gallium/drivers/r600/r600_shader.c
parent563a764110ac9a2e93e2a01e362d8dc756232634 (diff)
r600g: Fix reading vtx instruction offset from bytestream
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 63b9a037692..d294084de9c 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -463,7 +463,7 @@ static int r600_vtx_from_byte_stream(struct r600_shader_ctx *ctx,
vtx.srf_mode_all = bytes[bytes_read++];
/* offset is 2 bytes wide */
vtx.offset = bytes[bytes_read++];
- vtx.offset |= bytes[bytes_read++];
+ vtx.offset |= (bytes[bytes_read++] << 8);
vtx.endian = bytes[bytes_read++];
if (r600_bytecode_add_vtx(ctx->bc, &vtx)) {