i965: Move program compile to emit() time.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_gs.c
index 624fa1438bbeb905659466a1e4e05d754b533dd3..91f8d0b5dcba410028ae1d5fdb92f0d9d3afe812 100644 (file)
@@ -171,7 +171,8 @@ static void populate_key( struct brw_context *brw,
 
 /* Calculate interpolants for triangle and line rasterization.
  */
-static void prepare_gs_prog(struct brw_context *brw)
+static void
+brw_upload_gs_prog(struct brw_context *brw)
 {
    struct brw_gs_prog_key key;
    /* Populate the key:
@@ -200,5 +201,5 @@ const struct brw_tracked_state brw_gs_prog = {
       .brw   = BRW_NEW_PRIMITIVE,
       .cache = CACHE_NEW_VS_PROG
    },
-   .prepare = prepare_gs_prog
+   .emit = brw_upload_gs_prog
 };