Mesa (master): i965/fs: Add a couple more global special regs to special[]

Eric Anholt anholt at kemper.freedesktop.org
Tue Apr 8 08:24:36 UTC 2014


Module: Mesa
Branch: master
Commit: 14b85e3a47b19ffe9c96f67b43f780f8abc86061
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=14b85e3a47b19ffe9c96f67b43f780f8abc86061

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Mar 31 16:52:56 2014 -0700

i965/fs: Add a couple more global special regs to special[]

Nothing bad came of this because they weren't used after visitor running,
but leaving them in a bad state seems like a recipe for pain later.

Suggested-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/drivers/dri/i965/brw_fs.cpp |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 91b00b3..9e1bfec 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -1736,6 +1736,8 @@ fs_visitor::compact_virtual_grfs()
       { outputs, ARRAY_SIZE(outputs) },
       { delta_x, ARRAY_SIZE(delta_x) },
       { delta_y, ARRAY_SIZE(delta_y) },
+      { &sample_mask, 1 },
+      { &shader_start_time, 1 },
    };
 
    /* Treat all special values as used, to be conservative */




More information about the mesa-commit mailing list