projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
563a764
)
r600g: Fix reading vtx instruction offset from bytestream
author
Tom Stellard
<thomas.stellard@amd.com>
Wed, 6 Jun 2012 22:31:00 +0000
(18:31 -0400)
committer
Tom Stellard
<thomas.stellard@amd.com>
Thu, 21 Jun 2012 20:42:07 +0000
(20:42 +0000)
src/gallium/drivers/r600/r600_shader.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_shader.c
b/src/gallium/drivers/r600/r600_shader.c
index 63b9a037692e4a2971cf738180e119f64aadf6be..d294084de9cc3c1bf7ef70ff8cc808aef53d9d52 100644
(file)
--- 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)) {