summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIago Toral Quiroga <itoral@igalia.com>2015-10-16 11:31:46 +0200
committerIago Toral Quiroga <itoral@igalia.com>2015-10-19 08:20:40 +0200
commit55403665b6bff3778ba335e9fd7821fc9a11ad2b (patch)
tree61c2ca75d1b4b6bcf67a7c1e67ce882f3aee72aa
parent14c3db7bc59a6b10f5a13930c0274d4155cb8791 (diff)
downloadexternal_mesa3d-55403665b6bff3778ba335e9fd7821fc9a11ad2b.zip
external_mesa3d-55403665b6bff3778ba335e9fd7821fc9a11ad2b.tar.gz
external_mesa3d-55403665b6bff3778ba335e9fd7821fc9a11ad2b.tar.bz2
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 <krh@bitplanet.net> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
-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 a304eec..6ebe648 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;
}