i965: Move memset of TextureFormatSupported to brw_init_surface_formats.

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>
This commit is contained in:
Kenneth Graunke 2013-09-27 11:34:09 -07:00
parent fc5b865cec
commit 8d315b2583
2 changed files with 2 additions and 3 deletions

View file

@ -532,6 +532,8 @@ brw_init_surface_formats(struct brw_context *brw)
int gen;
gl_format format;
memset(&ctx->TextureFormatSupported, 0, sizeof(ctx->TextureFormatSupported));
gen = brw->gen * 10;
if (brw->is_g4x)
gen += 5;

View file

@ -380,9 +380,6 @@ intelInitContext(struct brw_context *brw,
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