i965/gen6: Remove state flagging on BRW_NEW_CURBE_OFFSETS.
authorEric Anholt <eric@anholt.net>
Thu, 16 Jun 2011 00:48:56 +0000 (17:48 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 20 Jun 2011 15:37:43 +0000 (08:37 -0700)
That flag was leftover from gen4, where brw_curbe.c is choosing ranges
of the CURBE space for constants to live in, and the unit state tells
where to load them from.  That's not the case on gen6 -- we don't set
this flag (since constants aren't in the URB), nor do we have any
state like that to upload.

src/mesa/drivers/dri/i965/gen6_gs_state.c
src/mesa/drivers/dri/i965/gen6_vs_state.c
src/mesa/drivers/dri/i965/gen6_wm_state.c

index e73e7824afe6afebc05e1c281c7dbd2e6e081140..d29f0290727db43f805aade3a4b36f259cabbd5c 100644 (file)
@@ -65,8 +65,7 @@ upload_gs_state(struct brw_context *brw)
 const struct brw_tracked_state gen6_gs_state = {
    .dirty = {
       .mesa  = _NEW_TRANSFORM,
-      .brw   = (BRW_NEW_CURBE_OFFSETS |
-               BRW_NEW_URB_FENCE |
+      .brw   = (BRW_NEW_URB_FENCE |
                BRW_NEW_CONTEXT),
       .cache = CACHE_NEW_GS_PROG
    },
index fd46da0c4dee7e769a9a5663c92c4e6d363463b9..022e23e12b03eb5ab8a8ef98f14d68633fe2997e 100644 (file)
@@ -165,8 +165,7 @@ upload_vs_state(struct brw_context *brw)
 const struct brw_tracked_state gen6_vs_state = {
    .dirty = {
       .mesa  = _NEW_TRANSFORM | _NEW_PROGRAM_CONSTANTS,
-      .brw   = (BRW_NEW_CURBE_OFFSETS |
-                BRW_NEW_NR_VS_SURFACES |
+      .brw   = (BRW_NEW_NR_VS_SURFACES |
                BRW_NEW_URB_FENCE |
                BRW_NEW_CONTEXT |
                BRW_NEW_VERTEX_PROGRAM |
index 038087e267ff532562ea7f4a5ef9aabd804ac1d5..9ef6133e2b93dc1123a4b002a8581fbd6a91afbf 100644 (file)
@@ -209,8 +209,7 @@ const struct brw_tracked_state gen6_wm_state = {
                _NEW_BUFFERS |
                _NEW_PROGRAM_CONSTANTS |
                _NEW_POLYGON),
-      .brw   = (BRW_NEW_CURBE_OFFSETS |
-               BRW_NEW_FRAGMENT_PROGRAM |
+      .brw   = (BRW_NEW_FRAGMENT_PROGRAM |
                 BRW_NEW_NR_WM_SURFACES |
                BRW_NEW_URB_FENCE |
                BRW_NEW_BATCH),