mesa/src
Topi Pohjolainen 4e6445caa9 i965/blorp: Use the render cache mechanism instead of explicit flushing
by replacing brw_emit_mi_flush() with brw_render_cache_set_check_flush().
The latter splits the flush in two:

   brw_emit_pipe_control_flush(brw,
                               PIPE_CONTROL_DEPTH_CACHE_FLUSH |
                               PIPE_CONTROL_RENDER_TARGET_FLUSH |
                               PIPE_CONTROL_CS_STALL);

   brw_emit_pipe_control_flush(brw,
                               PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE |
                               PIPE_CONTROL_CONST_CACHE_INVALIDATE);

instead of

   int flags = PIPE_CONTROL_NO_WRITE | PIPE_CONTROL_RENDER_TARGET_FLUSH;
   if (brw->gen >= 6) {
      flags |= PIPE_CONTROL_INSTRUCTION_INVALIDATE |
               PIPE_CONTROL_CONST_CACHE_INVALIDATE |
               PIPE_CONTROL_DEPTH_CACHE_FLUSH |
               PIPE_CONTROL_VF_CACHE_INVALIDATE |
               PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE |
               PIPE_CONTROL_CS_STALL;
   }
   brw_emit_pipe_control_flush(brw, flags);

v2 (Jason): Check that destination exists before trying to add to
            render cache. Depth clears and resolves don't have it.

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
(cherry picked from commit 4840a53e90)
2017-01-24 17:17:02 +00:00
..
amd radv: don't resubmit the same cs over and over while tracing 2017-01-24 02:26:52 +00:00
compiler glsl: split DIV_TO_MUL_RCP into single- and double-precision flags 2017-01-24 02:18:17 +00:00
egl egl/wayland: resolve quirky try_damage_buffer() implementation 2017-01-18 16:01:15 +00:00
gallium radeonsi: always set the TCL1_ACTION_ENA when invalidating L2 2017-01-24 02:28:55 +00:00
gbm gbm: request correct version of the DRI2_FENCE extension 2016-11-22 15:56:44 +00:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx glx: unify GLX_SGIX_pbuffer aliased declarations 2017-01-18 16:01:14 +00:00
gtest Introduce .editorconfig 2016-08-31 17:06:54 -07:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel intel/blorp/copy: Properly handle clear colors for CCS_E images 2017-01-24 01:15:47 +00:00
loader loader/dri3: Unify the style of function pointer calls in structs 2017-01-13 16:24:32 +00:00
mapi mesa: make use of HAVE_FUNC_ATTRIBUTE_ALIAS macro 2017-01-18 16:01:14 +00:00
mesa i965/blorp: Use the render cache mechanism instead of explicit flushing 2017-01-24 17:17:02 +00:00
util utils: really remove the __END_DECLS macro 2017-01-18 20:11:22 +00:00
vulkan vulkan/wsi: clarify the severity of lack of DRI3 v2 2017-01-20 23:45:50 +00:00
Makefile.am vulkan: automake: do not use EXTRA_DIST in a conditional 2017-01-18 13:41:32 +00:00
SConscript scons: put the generated git_sha1.h file in top-level src/ directory 2016-06-17 10:33:00 -06:00