From 1d6cf433d2d0dfa3edd9eaaed1e8c961bbd22f99 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sat, 18 Jun 2016 23:05:51 -0700 Subject: i965: Implement GenerateMipmap directly, rather than using Meta. Meta is awful and we'd like to stop using it. Implementing this using BLORP allows us to stop trashing a bunch of GL state every time. This follows the structure of st_generate_mipmap(). compute_num_levels is lifted directly from there. Improves performance in Gl41HdrBloom by about 11.794% +/- 1.01919% (n=3) on Kabylake GT2 at 1280x720 (the difference seems much smaller at higher resolutions). v2 (idr): Don't try depth or depth-stencil blorp blits on Gen4 or Gen5 because it's not implemented yet. Signed-off-by: Ian Romanick Reviewed-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/drivers/dri/i965/meson.build') diff --git a/src/mesa/drivers/dri/i965/meson.build b/src/mesa/drivers/dri/i965/meson.build index 24a69132114..e6866147d9f 100644 --- a/src/mesa/drivers/dri/i965/meson.build +++ b/src/mesa/drivers/dri/i965/meson.build @@ -42,6 +42,7 @@ files_i965 = files( 'brw_ff_gs_emit.c', 'brw_ff_gs.h', 'brw_formatquery.c', + 'brw_generate_mipmap.c', 'brw_gs.c', 'brw_gs.h', 'brw_gs_surface_state.c', -- cgit v1.2.3