brw_init_surface_formats already sets entries in TextureFormatsSupported
to true; it may as well take care of initializing it to false too.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
int gen;
gl_format format;
+ memset(&ctx->TextureFormatSupported, 0, sizeof(ctx->TextureFormatSupported));
+
gen = brw->gen * 10;
if (brw->is_g4x)
gen += 5;
functions->Viewport = intel_viewport;
}
- memset(&ctx->TextureFormatSupported,
- 0, sizeof(ctx->TextureFormatSupported));
-
/* Estimate the size of the mappable aperture into the GTT. There's an
* ioctl to get the whole GTT size, but not one to get the mappable subset.
* It turns out it's basically always 256MB, though some ancient hardware