i965/gen6: Fix scissors using invalid STATE_BASE_ADDRESS.
authorEric Anholt <eric@anholt.net>
Sun, 19 Jun 2011 18:33:40 +0000 (11:33 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 28 Jun 2011 17:17:39 +0000 (10:17 -0700)
The scissor state was incorrectly in a .prepare function instead of
.emit, so the packet would end up in the batch before the
STATE_BASE_ADDRESS.  It appears that this doesn't actually hurt, as
the scissor address gets dereferenced according to the current SBA at
draw time.

src/mesa/drivers/dri/i965/gen6_scissor_state.c

index fad3ca0dd04d772197c8a3c39db27b070dd1c9ab..7492e5088645bc9d53082988a04beeeabb47e2f7 100644 (file)
@@ -31,7 +31,7 @@
 #include "intel_batchbuffer.h"
 
 static void
-gen6_prepare_scissor_state(struct brw_context *brw)
+gen6_upload_scissor_state(struct brw_context *brw)
 {
    struct intel_context *intel = &brw->intel;
    struct gl_context *ctx = &intel->ctx;
@@ -89,5 +89,5 @@ const struct brw_tracked_state gen6_scissor_state = {
       .brw = BRW_NEW_BATCH,
       .cache = 0,
    },
-   .prepare = gen6_prepare_scissor_state,
+   .emit = gen6_upload_scissor_state,
 };