mesa/src
Kenneth Graunke 82144b7392 i965: Don't disable aux buffers for non-overlapping miplevels.
Meta's GenerateMipmap implementation binds the same image for both
sampling and rendering - but it samples from one miplevel while
rendering the next.  This is a false self-dependency, and there's
no need to disable auxiliary buffers in this case.  In fact, we really
want to leave it enabled so the new miplevels gain color compression.

Thankfully, the texture object's _MaxLevel is always one shy of the
miplevel being rendered.  So we can simply check if irb->mt_level is
overlaps with the texture's defined levels.  If not, there's no self-
dependency and we can leave the auxiliary buffers enabled.

Fixes a performance regression in GFXBench4 Car Chase, which apparently
calls glGenerateMipmap() on every frame.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103247
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by; Jason Ekstrand <jason@jlekstrand.net>
2017-10-19 11:10:00 -07:00
..
amd radv: reset dirty flags after flushing all states 2017-10-18 21:21:48 +02:00
broadcom meson: Add support for the vc5 driver. 2017-10-17 13:41:59 -07:00
compiler glsl/linker: produce error when invalid explicit locations are used 2017-10-19 11:27:12 +02:00
egl Revert "egl: move alloc & init out of _eglBuiltInDriver{DRI2,Haiku}" 2017-10-18 20:23:42 +02:00
gallium gallium: add more exceptions to tgsi_util_get_inst_usage_mask 2017-10-19 12:49:32 -05:00
gbm meson: build gbm 2017-10-09 13:42:44 -07:00
getopt
glx meson: Add support for configuring dri drivers directory. 2017-10-09 13:42:44 -07:00
gtest meson: convert gtest to an internal dependency 2017-10-03 10:02:08 -07:00
hgl
intel isl: Fix width check in isl_gen7_choose_msaa_layout. 2017-10-19 10:21:45 -07:00
loader meson: split and simplify dependencies 2017-10-16 16:32:43 -07:00
mapi mapi/shared-glapi/test: rework glapitable.h handling 2017-10-13 11:12:08 -07:00
mesa i965: Don't disable aux buffers for non-overlapping miplevels. 2017-10-19 11:10:00 -07:00
util drirc: Group a few games in the glthread whitelist together. 2017-10-19 03:28:34 +02:00
vulkan vulkan/wsi: Free the event in x11_manage_fifo_queues(). 2017-10-17 17:17:15 +01:00
git_sha1.h.in meson: Build i965 and dri stack 2017-10-09 13:42:44 -07:00
Makefile.am configure: Add the new "vc5" driver to the list, requiring a simulator. 2017-10-10 11:42:04 -07:00
meson.build meson: Add support for the vc4 driver. 2017-10-17 13:41:59 -07:00
SConscript scons: use python3-compatible print() 2017-09-25 11:57:12 +01:00