diff options
author | Timothy Arceri <[email protected]> | 2016-05-21 12:06:58 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-05-22 23:08:08 +1000 |
commit | a83e9afbe4bb6e89b95b6bd32c6e7b2b08402c47 (patch) | |
tree | a38a2defc17278636babda635846107cb16b96a8 /src/mesa | |
parent | 7dce4793b7fae65a2ecb63681c5096fb2af2eec4 (diff) |
i965: remove redundant NULL check
We would have segfaulted in the above code if prog could be NULL.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_gs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_gs.c b/src/mesa/drivers/dri/i965/brw_gs.c index 4dddb863e97..8f5dcf359e9 100644 --- a/src/mesa/drivers/dri/i965/brw_gs.c +++ b/src/mesa/drivers/dri/i965/brw_gs.c @@ -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); |