i965: Fix Gen6+ dynamic state upper bound on older kernels.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Feb 2012 20:32:41 +0000 (12:32 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Feb 2012 20:59:54 +0000 (12:59 -0800)
commitb2ace06cbbbb1021e2d7ace12a985c6406821939
tree3b265bbb86c0c2d2841395a49d4fb1ee0020d2d4
parente5f895485e03ac60efcb3f6f83ec1d3e33ef7ec2
i965: Fix Gen6+ dynamic state upper bound on older kernels.

Kernels prior to 271d81b84171d84723357ae6d172ec16b0d8139c (March 2011)
don't support relocations outside of the target buffer object.  Rather
than guarding this with a I915_PARAM_HAS_RELAXED_DELTA check, just
smash the bound to 0xfffff001 like we do on Ironlake.

This effectively gives us no upper bound check, just like we did prior
to commit 271d81b84171d84723357ae6d172ec16b0d8139c.

Daniel Vetter would also like to mention that this relies on the guard
page at the end of the GTT.

NOTE: This is a candidate for release branches.
Fixes a regression since 271d81b84171d84723357ae6d172ec16b0d8139c.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46766
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
src/mesa/drivers/dri/i965/brw_misc_state.c