summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTopi Pohjolainen <[email protected]>2017-01-19 10:11:42 +0200
committerTopi Pohjolainen <[email protected]>2017-01-24 10:41:58 +0200
commitba6399df9462d78eda2a5de7c2940d8cf9d27f95 (patch)
treeb7b5d7933a21c9f86d6906c72dc7a22cda39a064 /src
parente63ab36d0e13ce41d37734ac5c02bc80a3141021 (diff)
i965/blorp: Add also depth and stencil buffers to render cache
v2 (Jason, Curro): Add stencil also even though it is not enabled yet. Cc: 17.0 <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Signed-off-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/genX_blorp_exec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/genX_blorp_exec.c b/src/mesa/drivers/dri/i965/genX_blorp_exec.c
index 647a362afe0..37b29cd9f54 100644
--- a/src/mesa/drivers/dri/i965/genX_blorp_exec.c
+++ b/src/mesa/drivers/dri/i965/genX_blorp_exec.c
@@ -261,4 +261,8 @@ retry:
if (params->dst.enabled)
brw_render_cache_set_add_bo(brw, params->dst.addr.buffer);
+ if (params->depth.enabled)
+ brw_render_cache_set_add_bo(brw, params->depth.addr.buffer);
+ if (params->stencil.enabled)
+ brw_render_cache_set_add_bo(brw, params->stencil.addr.buffer);
}