summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-05-21 12:06:58 +1000
committerTimothy Arceri <[email protected]>2016-05-22 23:08:08 +1000
commita83e9afbe4bb6e89b95b6bd32c6e7b2b08402c47 (patch)
treea38a2defc17278636babda635846107cb16b96a8 /src
parent7dce4793b7fae65a2ecb63681c5096fb2af2eec4 (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')
-rw-r--r--src/mesa/drivers/dri/i965/brw_gs.c2
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);