i965: stop depending on gl_shader_program for brw_compute_vue_map() params
authorTimothy Arceri <timothy.arceri@collabora.com>
Mon, 7 Nov 2016 00:43:47 +0000 (11:43 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Fri, 6 Jan 2017 00:21:40 +0000 (11:21 +1100)
This removes another dependency on gl_shader_program from the codegen functions,
this will help allow us to use gl_program for the CurrentProgram array rather
than gl_shader_program.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/mesa/drivers/dri/i965/brw_gs.c

index 76ceb5b852213ec7e408dfdf56e0e65283284dd1..7886737c7ab1c40d464c681dd3411555e5034df8 100644 (file)
@@ -134,7 +134,7 @@ brw_codegen_gs_prog(struct brw_context *brw,
 
    brw_compute_vue_map(devinfo,
                        &prog_data.base.vue_map, outputs_written,
-                       prog->SeparateShader);
+                       gp->program.info.separate_shader);
 
    int st_index = -1;
    if (INTEL_DEBUG & DEBUG_SHADER_TIME)