Fix for a bug (setting of width and height), plus computing the right number of registers.
Fix for a bug (setting of width and height), plus computing the right
number of registers.

isazi/TuneBench,isazi/TuneBench