aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_ff_gs.c
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2015-02-23 14:44:39 -0800
committerCarl Worth <[email protected]>2015-04-02 22:15:45 -0700
commit28510d69ff8fc03bc1693be2b7a02bc68791dd2f (patch)
tree304866baff986c35ac451f0bc7419add6cc637e4 /src/mesa/drivers/dri/i965/brw_ff_gs.c
parent01d3b750b3682f3774f1bd01fa07a6b3c8baf28e (diff)
i965: Split out brw_<stage>_populate_key into their own functions
This commit splits portions of the existing brw_upload_vs_prog and brw_upload_gs_prog function into new brw_vs_populate_key and brw_gs_populate_key functions. This follows the same style as is already present for all other stages, (see brw_wm_populate_key, etc.). This commit is intended to have no functional change. It exists in preparation for some upcoming code movement in preparation for the shader cache. Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_ff_gs.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_ff_gs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_ff_gs.c b/src/mesa/drivers/dri/i965/brw_ff_gs.c
index 016fcdf3db5..14ae4c144e9 100644
--- a/src/mesa/drivers/dri/i965/brw_ff_gs.c
+++ b/src/mesa/drivers/dri/i965/brw_ff_gs.c
@@ -147,8 +147,9 @@ static void compile_ff_gs_prog(struct brw_context *brw,
ralloc_free(mem_ctx);
}
-static void populate_key(struct brw_context *brw,
- struct brw_ff_gs_prog_key *key)
+static void
+brw_ff_gs_populate_key(struct brw_context *brw,
+ struct brw_ff_gs_prog_key *key)
{
static const unsigned swizzle_for_offset[4] = {
BRW_SWIZZLE4(0, 1, 2, 3),
@@ -235,7 +236,7 @@ brw_upload_ff_gs_prog(struct brw_context *brw)
/* Populate the key:
*/
- populate_key(brw, &key);
+ brw_ff_gs_populate_key(brw, &key);
if (brw->ff_gs.prog_active != key.need_gs_prog) {
brw->ctx.NewDriverState |= BRW_NEW_FF_GS_PROG_DATA;