diff options
author | Jason Ekstrand <[email protected]> | 2017-11-03 16:01:28 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-11-13 21:51:59 -0800 |
commit | 4a09070295294e9017fa686fc8e113989ef0f41b (patch) | |
tree | c69679f6125ff562095d18ad75d110db0df73615 /src/mesa/drivers/dri/i965/intel_fbo.h | |
parent | 6830ba0d3be8df12572622839743c41b4f294825 (diff) |
i965: Add more precise cache tracking helpers
In theory, this will let us track the depth and render caches
separately. Right now, they're just wrappers around
brw_render_cache_set_*
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_fbo.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_fbo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_fbo.h b/src/mesa/drivers/dri/i965/intel_fbo.h index 608a1c4e7d6..d06a1e8fe99 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.h +++ b/src/mesa/drivers/dri/i965/intel_fbo.h @@ -238,6 +238,12 @@ void brw_render_cache_set_clear(struct brw_context *brw); void brw_render_cache_set_add_bo(struct brw_context *brw, struct brw_bo *bo); void brw_render_cache_set_check_flush(struct brw_context *brw, struct brw_bo *bo); +void brw_cache_flush_for_read(struct brw_context *brw, struct brw_bo *bo); +void brw_cache_flush_for_render(struct brw_context *brw, struct brw_bo *bo); +void brw_cache_flush_for_depth(struct brw_context *brw, struct brw_bo *bo); +void brw_render_cache_add_bo(struct brw_context *brw, struct brw_bo *bo); +void brw_depth_cache_add_bo(struct brw_context *brw, struct brw_bo *bo); + unsigned intel_quantize_num_samples(struct intel_screen *intel, unsigned num_samples); |