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.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Jason Ekstrand 2015-11-24 11:24:57 -08:00
parent 7e08a13009
commit 889e6054b7
1 changed files with 1 additions and 1 deletions

View File

@ -870,7 +870,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 {