summaryrefslogtreecommitdiff
path: root/src/i965_render.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2008-10-22 15:28:24 -0700
committerCarl Worth <cworth@cworth.org>2008-10-22 15:43:21 -0700
commit8fda7df0071046d057eeaf74328668b227af52a9 (patch)
treeaaa8aafeafa56a9791a60f6e18252263968303c5 /src/i965_render.c
parentacba4238116f2ead7be88d49c4c56c7cd6d7f3b8 (diff)
Rename gen4_state_init to gen4_static_state_init
This follows naturally from the structure rename. Also we make things less muddled by having this function actually accept a pointer to a gen4_static_state_t rather than a gen4_state_t, (and then fetching the desired pointer out from that). Again, no intended change in functionality here.
Diffstat (limited to 'src/i965_render.c')
-rw-r--r--src/i965_render.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/i965_render.c b/src/i965_render.c
index 7cc81f22..c23ff0c0 100644
--- a/src/i965_render.c
+++ b/src/i965_render.c
@@ -706,11 +706,10 @@ wm_state_init (struct brw_wm_unit_state *wm_state,
* Called at EnterVT to fill in our state buffer with any static information.
*/
static void
-gen4_state_init (struct gen4_render_state *render_state)
+gen4_static_state_init (gen4_static_state_t *static_state,
+ uint32_t state_base_offset)
{
int i, j, k, l;
- gen4_static_state_t *static_state = render_state->static_state;
- uint32_t state_base_offset = render_state->static_state_offset;
#define KERNEL_COPY(kernel) \
memcpy(static_state->kernel, kernel ## _static, sizeof(kernel ## _static))
@@ -1481,7 +1480,8 @@ gen4_render_state_init(ScrnInfoPtr pScrn)
(pI830->FbBase + render_state->static_state_offset);
}
- gen4_state_init(render_state);
+ gen4_static_state_init(render_state->static_state,
+ render_state->static_state_offset);
}
/**