i965: Resolve color for non-coherent FB fetch at UpdateState time.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 1 Jul 2016 20:45:22 +0000 (13:45 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 26 Aug 2016 01:36:07 +0000 (18:36 -0700)
commit99fb167839c8c9888f8de78e3b96de23f92a1012
tree9b32c0e7aac9e3e2db779b362db63f0b65e81f3b
parent071665c16191e3738f4ee173398da45c008e005a
i965: Resolve color for non-coherent FB fetch at UpdateState time.

This is required because the sampler unit used to fetch from the
framebuffer is unable to interpret non-color-compressed fast-cleared
single-sample texture data.  Roughly the same limitation applies for
surfaces bound to texture or image units, but unlike texture sampling,
non-coherent framebuffer fetch is by definition non-coherent with
previous rendering, so the brw_render_cache_set_check_flush() call can
be omitted except after resolve.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c