i965/fs: Add another use of MAX_VGRF_SIZE

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Jason Ekstrand 2014-10-03 18:09:52 -07:00
parent f84adb8481
commit 1988b71655

View file

@ -102,7 +102,7 @@ brw_alloc_reg_set(struct intel_screen *screen, int reg_width)
* regs).
*/
int class_count;
int class_sizes[BRW_MAX_MRF];
int class_sizes[MAX_VGRF_SIZE];
if (devinfo->gen >= 7) {
for (class_count = 0; class_count < MAX_VGRF_SIZE; class_count++)