Commit bea67fa5 authored by Andreas Baierl's avatar Andreas Baierl
Browse files

Fix varying decoding in rsw parser


Acked-by: Qiang Yu's avatarQiang Yu <yuq825@gmail.com>
Signed-off-by: Andreas Baierl's avatarAndreas Baierl <ichgeh@imkreisrum.de>
parent 4462f725
......@@ -409,6 +409,7 @@ parse_rsw(uint32_t desc[], unsigned physical, uint32_t start, int i)
/* 0 - 5 */
for (j = 0; j < 6; j++) {
val = *value & (0x07 << (j * 3));
val = val >> (j * 3);
wrap_log("val %d-%d, ", j, val);
}
/* 6 - 9 */
......@@ -416,10 +417,11 @@ parse_rsw(uint32_t desc[], unsigned physical, uint32_t start, int i)
wrap_log("\n\t\t\t\t\t\t/* %s(2): ", render_state_infos[i].info);
for (j = 6; j < 10; j++) {
val = *value & (0x07 << (j * 3));
val = val >> (j * 3);
wrap_log("val %d-%d, ", j, val);
}
/* 10 */
val = ((*value & 0x0c000000) >> 30) | ((*helper & 0x00000001) << 2);
val = ((*value & 0xc0000000) >> 30) | ((*helper & 0x00000001) << 2);
wrap_log("val %d-%d, ", j, val);
j++;
/* 11 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment