From: Iago Toral Quiroga Date: Fri, 16 Oct 2015 09:31:46 +0000 (+0200) Subject: i965: Do not use NumBufferInterfaceBlocks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55403665b6bff3778ba335e9fd7821fc9a11ad2b;p=mesa.git 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 Reviewed-by: Marek Olšák --- 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; }