[Mesa-dev] [PATCH] i965: Add missing BRW_NEW_STATE_BASE_ADDRESS to scissor state atom.

Kenneth Graunke kenneth at whitecape.org
Wed Jan 29 21:55:32 PST 2014


The "pointer" value is relative to the base address, so if we change the
base address, we'd better re-emit this.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/mesa/drivers/dri/i965/gen6_scissor_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/gen6_scissor_state.c b/src/mesa/drivers/dri/i965/gen6_scissor_state.c
index 6b01cd1..bfd081ef 100644
--- a/src/mesa/drivers/dri/i965/gen6_scissor_state.c
+++ b/src/mesa/drivers/dri/i965/gen6_scissor_state.c
@@ -93,7 +93,7 @@ gen6_upload_scissor_state(struct brw_context *brw)
 const struct brw_tracked_state gen6_scissor_state = {
    .dirty = {
       .mesa = _NEW_SCISSOR | _NEW_BUFFERS | _NEW_VIEWPORT,
-      .brw = BRW_NEW_BATCH,
+      .brw = BRW_NEW_BATCH | BRW_NEW_STATE_BASE_ADDRESS,
       .cache = 0,
    },
    .emit = gen6_upload_scissor_state,
-- 
1.8.5.2



More information about the mesa-dev mailing list