aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/sparc/sparc_clip.S
diff options
context:
space:
mode:
authorTopi Pohjolainen <[email protected]>2017-01-17 11:04:22 +0200
committerEmil Velikov <[email protected]>2017-01-24 17:17:02 +0000
commit4e6445caa96f66736b47b257a59dc922e31b7cf6 (patch)
tree73a6a6c2cef07d9140ba7a03df2a4414f7213ca0 /src/mesa/sparc/sparc_clip.S
parente405d0d3c653dc00049e2c713dbc158014055529 (diff)
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 <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> (cherry picked from commit 4840a53e902b0f2b9841d9dbb90e479a3688153d)
Diffstat (limited to 'src/mesa/sparc/sparc_clip.S')
0 files changed, 0 insertions, 0 deletions