i965/blorp: Add also depth and stencil buffers to render cache
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Thu, 19 Jan 2017 08:11:42 +0000 (10:11 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 24 Jan 2017 08:41:58 +0000 (10:41 +0200)
v2 (Jason, Curro): Add stencil also even though it is not
                   enabled yet.

Cc: 17.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/genX_blorp_exec.c

index 647a362afe04325863d99066d60282f07b8ae95d..37b29cd9f544196617042f90334ad9b6b326a1d8 100644 (file)
@@ -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);
 }