[Mesa-dev] [PATCH 1/4] i965: Correctly use ABO count to trigger flagging of new surfaces.

Chris Forbes chrisf at ijw.co.nz
Sat Oct 11 17:20:44 PDT 2014


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>
---
 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;
 }
 
-- 
2.1.2



More information about the mesa-dev mailing list