From: Jason Ekstrand Date: Sat, 4 Oct 2014 01:09:52 +0000 (-0700) Subject: i965/fs: Add another use of MAX_VGRF_SIZE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1988b7165567f19f3439514625adf8ed6ccf3b62;p=mesa.git i965/fs: Add another use of MAX_VGRF_SIZE Signed-off-by: Jason Ekstrand Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp index 65a09a0ee97..be02dfe6ef4 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp @@ -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++)