diff options
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_surface_formats.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_context.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_surface_formats.c b/src/mesa/drivers/dri/i965/brw_surface_formats.c index 86663365301..7afca79819a 100644 --- a/src/mesa/drivers/dri/i965/brw_surface_formats.c +++ b/src/mesa/drivers/dri/i965/brw_surface_formats.c @@ -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; diff --git a/src/mesa/drivers/dri/i965/intel_context.c b/src/mesa/drivers/dri/i965/intel_context.c index 154b05293fd..8a48e632748 100644 --- a/src/mesa/drivers/dri/i965/intel_context.c +++ b/src/mesa/drivers/dri/i965/intel_context.c @@ -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 |