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>
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);
}