diff options
author | Jason Ekstrand <[email protected]> | 2017-06-24 15:14:50 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-07-05 14:22:40 -0700 |
commit | 0673bbfd9ba16be81b6ab84a587735496af4fb16 (patch) | |
tree | 80b6f4ec20ce520b1cebfc2d29eb3fbfc5c855a2 /src/glx/windows/windowsgl_internal.h | |
parent | 95731b7ccc605bbfe2c3cb3d533219bc0788cbaa (diff) |
i965: Move surface resolves back to draw/dispatch time
This is effectively a revert of 388f02729bbf88ba104f4f8ee1fdf005a240969c
though much code has been added since. Kristian initially moved it to
try and avoid locking problems with meta-based resolves. Now that meta
is gone from the resolve path (for good this time, we hope), we can move
it back. The problem with having it in intel_update_state was that the
UpdateState hook gets called by core mesa directly and all sorts of
things will cause a UpdateState to get called which may trigger resolves
at inopportune times. In particular, it gets called by _mesa_Clear and,
if we have a HiZ buffer in the INVALID_AUX state, causes a HiZ resolve
right before the clear which is pointless. By moving it back to
try_draw_prims time, we know it will only get called right before a draw
which is where we want it.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glx/windows/windowsgl_internal.h')
0 files changed, 0 insertions, 0 deletions