[Mesa-dev] [PATCH 14/16] i965/gen7.5: Update surface state entry for WM pull constants
Abdiel Janulgue
abdiel.janulgue at linux.intel.com
Tue Oct 8 14:41:51 PDT 2013
Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
---
src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 4 ++++
1 file changed, 4 insertions(+)
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 08c5720..215ff76 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -456,6 +456,10 @@ brw_upload_wm_pull_constants(struct brw_context *brw)
brw->vtbl.create_constant_surface(brw, brw->wm.base.const_bo, 0, size,
&brw->wm.base.surf_offset[surf_index],
true);
+ if (brw->has_resource_streamer) {
+ gen7_update_binding_table(brw, STAGE_FRAGMENT_SHADER, surf_index,
+ brw->wm.base.surf_offset[surf_index]);
+ }
brw->state.dirty.brw |= BRW_NEW_SURFACES;
}
--
1.7.9.5
More information about the mesa-dev
mailing list