i965: remove redundant NULL check
authorTimothy Arceri <timothy.arceri@collabora.com>
Sat, 21 May 2016 02:06:58 +0000 (12:06 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Sun, 22 May 2016 13:08:08 +0000 (23:08 +1000)
We would have segfaulted in the above code if prog could be NULL.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_gs.c

index 4dddb863e9792268e49ae2c41401029e52e0a0c7..8f5dcf359e960bd13594ef1e805ddc6ab2910a2a 100644 (file)
@@ -144,7 +144,7 @@ brw_codegen_gs_prog(struct brw_context *brw,
 
    brw_compute_vue_map(brw->intelScreen->devinfo,
                        &prog_data.base.vue_map, outputs_written,
-                       prog ? prog->SeparateShader : false);
+                       prog->SeparateShader);
 
    if (unlikely(INTEL_DEBUG & DEBUG_GS))
       brw_dump_ir("geometry", prog, gs, NULL);