i965/fbo: Prepare layer multiplier for render buffer compression
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 7 Jun 2016 05:22:18 +0000 (08:22 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 23 Nov 2016 09:06:53 +0000 (11:06 +0200)
This path is not yet taken for fast cleared or compressed buffers
but later patches will enable it.

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/intel_fbo.c

index cb2ee8b3d25dd666891f8dcd66625258f63fc42d..de0cd6aca2ff98159db40a63eb6063b360547461 100644 (file)
@@ -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: