Mesa (master): r600g: Fix reading vtx instruction offset from bytestream
Tom Stellard
tstellar at kemper.freedesktop.org
Thu Jun 21 20:50:21 UTC 2012
Module: Mesa
Branch: master
Commit: 5cd6ce939d1158d0ee3dd376e2c95aeff49c6e27
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5cd6ce939d1158d0ee3dd376e2c95aeff49c6e27
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Wed Jun 6 18:31:00 2012 -0400
r600g: Fix reading vtx instruction offset from bytestream
---
src/gallium/drivers/r600/r600_shader.c | 2 +-
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 63b9a03..d294084 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)) {
More information about the mesa-commit
mailing list