[Intel-gfx] [PATCH 2/4] drm/i915/bdw: Extract rp_state_caps logic

2014-03-31 Thread Ben Widawsky
We have a need for duplicated parsing of the RP_STATE_CAPS register (and the setting of the associated fields). To reuse some code, we can extract the function into a simple helper. This patch also addresses the fact that we missed doing this for gen8, something we should have done anyway. This

[Intel-gfx] [PATCH 2/4] drm/i915/bdw: Extract rp_state_caps logic

2014-03-31 Thread Ben Widawsky
We have a need for duplicated parsing of the RP_STATE_CAPS register (and the setting of the associated fields). To reuse some code, we can extract the function into a simple helper. This patch also addresses the fact that we missed doing this for gen8, something we should have done anyway. This