i965/fs: Fix regs_read() for MOV_INDIRECT with a non-zero subnr

The subnr field is in bytes so we don't need to multiply by type_sz.
This commit is contained in:
Jason Ekstrand
2015-11-24 11:24:57 -08:00
parent 653d8044ab
commit 4be9a1c7bb
+1 -1
View File
@@ -867,7 +867,7 @@ fs_inst::regs_read(int arg) const
* unread portion at the beginning.
*/
if (src[0].subnr)
region_length += src[0].subnr * type_sz(src[0].type);
region_length += src[0].subnr;
return DIV_ROUND_UP(region_length, REG_SIZE);
} else {