Mesa (8.0): i965: Fix border color on Ironlake.

Ian Romanick idr at kemper.freedesktop.org
Wed Feb 15 03:19:43 UTC 2012


Module: Mesa
Branch: 8.0
Commit: be1377c33c320d70565192912fc53d72a86eebff
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=be1377c33c320d70565192912fc53d72a86eebff

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Feb  8 17:14:15 2012 -0800

i965: Fix border color on Ironlake.

Ironlake appears to check our pointer against the General State Base
Address upper bound, rather than ignoring the zero bound as it ought.

Unfortunately, since we leave GSBA set to zero, there is no logical
upper bound.  Set it to the maximum possible value, which should work
since our virtual addresses only go up to 2GB.

+94 piglits.

NOTE: This is a candidate for stable release branches.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=28924
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
(cherry picked from commit 3340b47c2280346ba2f44dde44466f09d898b9d8)

---

 src/mesa/drivers/dri/i965/brw_misc_state.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c
index c364f40..0343ae1 100644
--- a/src/mesa/drivers/dri/i965/brw_misc_state.c
+++ b/src/mesa/drivers/dri/i965/brw_misc_state.c
@@ -788,7 +788,7 @@ static void upload_state_base_address( struct brw_context *brw )
        OUT_BATCH(1); /* Indirect object base address */
        OUT_RELOC(brw->cache.bo, I915_GEM_DOMAIN_INSTRUCTION, 0,
 		 1); /* Instruction base address */
-       OUT_BATCH(1); /* General state upper bound */
+       OUT_BATCH(0xfffff001); /* General state upper bound */
        OUT_BATCH(1); /* Indirect object upper bound */
        OUT_BATCH(1); /* Instruction access upper bound */
        ADVANCE_BATCH();




More information about the mesa-commit mailing list