i965: Fix remove_duplicate_mrf_writes so it can handle 24 MRFs in gen6
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 22 Sep 2015 10:53:08 +0000 (12:53 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 8 Oct 2015 09:28:16 +0000 (11:28 +0200)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 1187c6765cd95ee929add28d68dfafe945aa5161..2a90ed4b1652ef21f3db09c7a6d90b35a0a2a5dd 100644 (file)
@@ -2678,7 +2678,7 @@ fs_visitor::emit_repclear_shader()
 bool
 fs_visitor::remove_duplicate_mrf_writes()
 {
-   fs_inst *last_mrf_move[16];
+   fs_inst *last_mrf_move[BRW_MAX_MRF(devinfo->gen)];
    bool progress = false;
 
    /* Need to update the MRF tracking for compressed instructions. */