aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2015-10-16 11:31:46 +0200
committerIago Toral Quiroga <[email protected]>2015-10-19 08:20:40 +0200
commit55403665b6bff3778ba335e9fd7821fc9a11ad2b (patch)
tree61c2ca75d1b4b6bcf67a7c1e67ce882f3aee72aa /src/mesa
parent14c3db7bc59a6b10f5a13930c0274d4155cb8791 (diff)
i965: Do not use NumBufferInterfaceBlocks
This is the only place in the driver where we use this. Since we now work with separate index spaces, always use NumUniformBlocks and NumShaderStorageBlocks instead of NumBufferInterfaceBlocks to be more consistent with the rest of the code. Reviewed-by: Kristian Høgsberg <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_surface_state.c2
1 files changed, 1 insertions, 1 deletions
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 a304eec3249..6ebe6481c32 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -972,7 +972,7 @@ brw_upload_ubo_surfaces(struct brw_context *brw,
}
}
- if (shader->NumBufferInterfaceBlocks)
+ if (shader->NumUniformBlocks || shader->NumShaderStorageBlocks)
brw->ctx.NewDriverState |= BRW_NEW_SURFACES;
}