i965: switch gs over to shared shader_info
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 19 Oct 2016 00:48:02 +0000 (11:48 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Wed, 26 Oct 2016 03:29:36 +0000 (14:29 +1100)
Note we access shader_info from the program struct rather than the
nir_shader pointer because shader cache won't create a nir_shader.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_gs.c

index 007ca5e1ec1f81b127845d6e565a3e33dec2260f..b493e6c3a2f34f9bfa2e14e015aa9dd1447b5dfe 100644 (file)
@@ -134,7 +134,7 @@ brw_codegen_gs_prog(struct brw_context *brw,
                                &prog_data.base.base,
                                compiler->scalar_stage[MESA_SHADER_GEOMETRY]);
 
-   uint64_t outputs_written = gp->program.Base.nir->info->outputs_written;
+   uint64_t outputs_written = gp->program.Base.info.outputs_written;
 
    prog_data.base.cull_distance_mask =
       ((1 << gp->program.Base.CullDistanceArraySize) - 1) <<