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.c | |
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.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_fbo.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c index 4a592f37ef3..927f589321e 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.c +++ b/src/mesa/drivers/dri/i965/intel_fbo.c @@ -1021,6 +1021,35 @@ brw_render_cache_set_check_flush(struct brw_context *brw, struct brw_bo *bo) brw_render_cache_set_clear(brw); } +void +brw_cache_flush_for_read(struct brw_context *brw, struct brw_bo *bo) +{ + brw_render_cache_set_check_flush(brw, bo); +} + +void +brw_cache_flush_for_render(struct brw_context *brw, struct brw_bo *bo) +{ +} + +void +brw_render_cache_add_bo(struct brw_context *brw, struct brw_bo *bo) +{ + brw_render_cache_set_add_bo(brw, bo); +} + +void +brw_cache_flush_for_depth(struct brw_context *brw, struct brw_bo *bo) +{ + brw_render_cache_set_check_flush(brw, bo); +} + +void +brw_depth_cache_add_bo(struct brw_context *brw, struct brw_bo *bo) +{ + brw_render_cache_set_add_bo(brw, bo); +} + /** * Do one-time context initializations related to GL_EXT_framebuffer_object. * Hook in device driver functions. |