i965/fs: Add another use of MAX_VGRF_SIZE
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 4 Oct 2014 01:09:52 +0000 (18:09 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 24 Oct 2014 23:23:24 +0000 (16:23 -0700)
Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp

index 65a09a0ee97196cafcd00183503d2e776090419a..be02dfe6ef497e2037e1ac4593849bda531a880f 100644 (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++)