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:
parent
7e08a13009
commit
889e6054b7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue