i965: Compute VS/GS output VUE map from the NIR info.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 15 Sep 2017 05:58:34 +0000 (22:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Sep 2017 16:39:31 +0000 (09:39 -0700)
unify_interfaces() only updates the NIR program info, not the copy
in the gl_program itself.  So, by using the old copy, we were missing
out on these updates.

The TCS/TES ones already did this correctly.

Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com>
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_vs.c

index 179ccc4c6fb31bc3e06da26dccdb972bffcc2976..01e85daca55a09c979e9825027a3407ab3471df3 100644 (file)
@@ -115,7 +115,7 @@ brw_codegen_gs_prog(struct brw_context *brw,
    brw_nir_analyze_ubo_ranges(compiler, gp->program.nir,
                               prog_data.base.base.ubo_ranges);
 
-   uint64_t outputs_written = gp->program.info.outputs_written;
+   uint64_t outputs_written = gp->program.nir->info.outputs_written;
 
    brw_compute_vue_map(devinfo,
                        &prog_data.base.vue_map, outputs_written,
index 38af5131595353bddc454ed45ab4b6ad5975c21b..1add877c85e92692fc921c298e8fc879b227c163 100644 (file)
@@ -212,7 +212,7 @@ brw_codegen_vs_prog(struct brw_context *brw,
    }
 
    uint64_t outputs_written =
-      brw_vs_outputs_written(brw, key, vp->program.info.outputs_written);
+      brw_vs_outputs_written(brw, key, vp->program.nir->info.outputs_written);
 
    brw_compute_vue_map(devinfo,
                        &prog_data.base.vue_map, outputs_written,