mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
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:
parent
fc5b865cec
commit
8d315b2583
2 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue