diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2006-09-07 16:09:50 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2006-09-07 16:09:50 +0000 |
commit | 133f14168009393c5f396d218521625cb79b653f (patch) | |
tree | 60998ccd4cbff825a62c5223fb207a799d84152b /src/mesa/drivers/dri/i965/brw_wm_state.c | |
parent | c5cb8e2c6f2ad089bc0b94eb89abb2f804dd6dfa (diff) |
Make sure bmBufferOffset is called for all active buffers every time
we render. Currenly requires that some state be re-examined after
every LOCK_HARDWARE().
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_state.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_state.c b/src/mesa/drivers/dri/i965/brw_wm_state.c index 8e708d742d..accf1243ec 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_state.c @@ -98,6 +98,10 @@ static void upload_wm_unit(struct brw_context *brw ) assert(per_thread <= 12 * 1024); wm.thread2.per_thread_scratch_space = (per_thread / 1024) - 1; + + /* XXX: could make this dynamic as this is so rarely active: + */ + /* BRW_NEW_LOCK */ wm.thread2.scratch_space_base_pointer = bmBufferOffset(intel, brw->wm.scratch_buffer) >> 10; } @@ -179,7 +183,7 @@ const struct brw_tracked_state brw_wm_unit = { .brw = (BRW_NEW_FRAGMENT_PROGRAM | BRW_NEW_CURBE_OFFSETS | - BRW_NEW_FENCE), + BRW_NEW_LOCK), .cache = (CACHE_NEW_SURFACE | CACHE_NEW_WM_PROG | |