diff options
author | Kenneth Graunke <[email protected]> | 2015-04-25 09:47:59 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-04-27 14:59:06 -0700 |
commit | dffc1a0ae3a75d426f10c5d3ba021de977467929 (patch) | |
tree | ff9f4b6361481224389a15daee442a75a0911280 /src/mesa/drivers/dri/i965 | |
parent | d795cc6508cba209c66c658e39d5adbe2022f0fb (diff) |
i965/vs: Remove unnecessary NULL check on generate_code() result.
Code generation is not allowed to fail for any reason - in fact,
fs_generator has no mechanism for failing. The visitor is responsible
for that.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp index 9398adce277..8ce07637b20 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp @@ -1868,8 +1868,7 @@ brw_vs_emit(struct brw_context *brw, g.generate_code(v.cfg, 8); assembly = g.get_assembly(final_assembly_size); - if (assembly) - prog_data->base.simd8 = true; + prog_data->base.simd8 = true; c->base.last_scratch = v.last_scratch; } |