summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorTopi Pohjolainen <[email protected]>2016-06-07 08:22:18 +0300
committerTopi Pohjolainen <[email protected]>2016-11-23 11:06:53 +0200
commit07d070f324ff821e24a5c7bef028d04334e57c5a (patch)
tree04cf372b618996ae0ad4206bce907f11aeed57ae /src/mesa
parenta2d029dc5ffdaf249a7ebfe71b814e8c2495d5f1 (diff)
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 <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/intel_fbo.c2
1 files changed, 1 insertions, 1 deletions
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: