i965: Treat Haswell as 75 in the surface format table.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 8 May 2013 21:38:25 +0000 (14:38 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 14 Dec 2013 05:14:19 +0000 (21:14 -0800)
Much like we do for G45.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_surface_formats.c

index 7afca79819ad1bdc431e72eb8a9be9ab2449ebf3..90e43a71addc76a5ceec22b14dad1a4f283c04e8 100644 (file)
@@ -535,7 +535,7 @@ brw_init_surface_formats(struct brw_context *brw)
    memset(&ctx->TextureFormatSupported, 0, sizeof(ctx->TextureFormatSupported));
 
    gen = brw->gen * 10;
-   if (brw->is_g4x)
+   if (brw->is_g4x || brw->is_haswell)
       gen += 5;
 
    for (format = MESA_FORMAT_NONE + 1; format < MESA_FORMAT_COUNT; format++) {