i965: Correctly use ABO count to trigger flagging of new surfaces.
authorChris Forbes <chrisf@ijw.co.nz>
Tue, 23 Sep 2014 10:16:21 +0000 (22:16 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Thu, 16 Oct 2014 09:31:43 +0000 (22:31 +1300)
This would have *almost never* actually been an issue, since other state
tends to get flagged at the same time as new ABOs -- but still bogus.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c

index d35dee0e470879271d711810e24704c13713a00a..ef46dd78b9e3387affd3d543c371eaa8ccd1050e 100644 (file)
@@ -919,7 +919,7 @@ brw_upload_abo_surfaces(struct brw_context *brw,
                                    &surf_offsets[i], true);
    }
 
-   if (prog->NumUniformBlocks)
+   if (prog->NumAtomicBuffers)
       brw->state.dirty.brw |= BRW_NEW_SURFACES;
 }