From: Paul Berry Date: Mon, 2 Sep 2013 00:52:20 +0000 (-0700) Subject: i965: Add some missing bits to {mesa,brw,cache}_bits[]. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b0488ef4e3e4562c8e383282e0d2db183dfc5c1;p=mesa.git i965: Add some missing bits to {mesa,brw,cache}_bits[]. These data structures are used for debug output, so it wasn't hurting anything that there were missing bits. But it's good to keep things up to date. This patch also adds static asserts so that the {brw,cache}_bits[] arrays are the proper size, so that we don't forget to add to them in the future. Unfortunately there's no convenient way to assert that mesa_bits[] is the proper size. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 5e66567b3cc..656fb3c0504 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -808,6 +808,8 @@ enum shader_time_shader_type { #define CACHE_NEW_CC_VP (1<mesa); brw_update_dirty_count(brw_bits, state->brw); brw_update_dirty_count(cache_bits, state->cache);