Mesa (master): i965: Correctly use ABO count to trigger flagging of new surfaces.
Chris Forbes
chrisf at kemper.freedesktop.org
Thu Oct 16 09:33:50 UTC 2014
Module: Mesa
Branch: master
Commit: 0dc56600aa0fae509b60da09f57d1f649125be04
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0dc56600aa0fae509b60da09f57d1f649125be04
Author: Chris Forbes <chrisf at ijw.co.nz>
Date: Tue Sep 23 22:16:21 2014 +1200
i965: Correctly use ABO count to trigger flagging of new surfaces.
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 at ijw.co.nz>
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
---
src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
index d35dee0..ef46dd7 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -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;
}
More information about the mesa-commit
mailing list