i965: Remove bad assert on isl_format
authorChad Versace <chadversary@chromium.org>
Sat, 27 May 2017 01:44:14 +0000 (18:44 -0700)
committerChad Versace <chadversary@chromium.org>
Thu, 1 Jun 2017 19:41:26 +0000 (12:41 -0700)
translate_tex_format() asserted that isl_format != 0. But 0 is a valid
format, ISL_FORMAT_R32G32B32A32_FLOAT.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_surface_formats.c

index 155146cb92cf5a2e2d6f8bbd3206e853a7a425ee..52d3acbb377bf792046bfd23f52dd40484b51b1d 100644 (file)
@@ -575,7 +575,6 @@ translate_tex_format(struct brw_context *brw,
    }
 
    default:
-      assert(brw_isl_format_for_mesa_format(mesa_format) != 0);
       return brw_isl_format_for_mesa_format(mesa_format);
    }
 }