From 07d070f324ff821e24a5c7bef028d04334e57c5a Mon Sep 17 00:00:00 2001 From: Topi Pohjolainen Date: Tue, 7 Jun 2016 08:22:18 +0300 Subject: [PATCH] i965/fbo: Prepare layer multiplier for render buffer compression This path is not yet taken for fast cleared or compressed buffers but later patches will enable it. Signed-off-by: Topi Pohjolainen Reviewed-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/intel_fbo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c index cb2ee8b3d25..de0cd6aca2f 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.c +++ b/src/mesa/drivers/dri/i965/intel_fbo.c @@ -540,7 +540,7 @@ intel_renderbuffer_update_wrapper(struct brw_context *brw, switch (mt->msaa_layout) { case INTEL_MSAA_LAYOUT_UMS: case INTEL_MSAA_LAYOUT_CMS: - layer_multiplier = mt->num_samples; + layer_multiplier = MAX2(mt->num_samples, 1); break; default: -- 2.30.2