Mesa (master): i965: Fix remove_duplicate_mrf_writes so it can handle 24 MRFs in gen6
Iago Toral Quiroga
itoral at kemper.freedesktop.org
Thu Oct 8 09:30:24 UTC 2015
Module: Mesa
Branch: master
Commit: 0c2add775192f3ee0325d61964ef67f7ca3f6d4e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c2add775192f3ee0325d61964ef67f7ca3f6d4e
Author: Iago Toral Quiroga <itoral at igalia.com>
Date: Tue Sep 22 12:53:08 2015 +0200
i965: Fix remove_duplicate_mrf_writes so it can handle 24 MRFs in gen6
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 1187c67..2a90ed4 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -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. */
More information about the mesa-commit
mailing list