i965/vs: Remove unnecessary NULL check on generate_code() result.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 25 Apr 2015 16:47:59 +0000 (09:47 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 27 Apr 2015 21:59:06 +0000 (14:59 -0700)
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 <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp

index 9398adce277787af7809deade6cea41ca1852e8b..8ce07637b205d13d95164269a44ca8576a6e56c3 100644 (file)
@@ -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;
    }