anv/gen7: Make use of local variable prog_data
authorAnuj Phogat <anuj.phogat@gmail.com>
Mon, 26 Sep 2016 18:10:56 +0000 (11:10 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 4 Oct 2016 20:20:34 +0000 (13:20 -0700)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/gen7_vs_state.c

index 57e041938fa1f303cdd3715f7b1917df4bc2d39e..d3bd9fda8799a1b76af1fa51f5be352abbb031c3 100644 (file)
@@ -42,7 +42,7 @@ upload_vs_state(struct brw_context *brw)
    if (!brw->is_haswell && !brw->is_baytrail)
       gen7_emit_vs_workaround_flush(brw);
 
-   if (brw->vs.prog_data->base.base.use_alt_mode)
+   if (prog_data->base.use_alt_mode)
       floating_point_mode = GEN6_VS_FLOATING_POINT_MODE_ALT;
 
    BEGIN_BATCH(6);
@@ -51,7 +51,7 @@ upload_vs_state(struct brw_context *brw)
    OUT_BATCH(floating_point_mode |
             ((ALIGN(stage_state->sampler_count, 4)/4) <<
               GEN6_VS_SAMPLER_COUNT_SHIFT) |
-             ((brw->vs.prog_data->base.base.binding_table.size_bytes / 4) <<
+             ((prog_data->base.binding_table.size_bytes / 4) <<
               GEN6_VS_BINDING_TABLE_ENTRY_COUNT_SHIFT));
 
    if (prog_data->base.total_scratch) {