[Mesa-dev] [PATCH 08/12] i965: Support allocating the MCS buffer for 16x MSAA

Ben Widawsky ben at bwidawsk.net
Tue Sep 22 16:20:06 PDT 2015


On Thu, Sep 17, 2015 at 05:00:10PM +0100, Neil Roberts wrote:
> When 16 samples are used the MCS buffer needs 64 bits per pixel.
> ---
>  src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> index 0cb0632..9faafb4 100644
> --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> @@ -1374,6 +1374,12 @@ intel_miptree_alloc_mcs(struct brw_context *brw,
>         */
>        format = MESA_FORMAT_R_UINT32;
>        break;
> +   case 16:
> +      /* 64 bits/pixel are required for MCS data when using 16x MSAA (4 bits
> +       * for each sample).
> +       */
> +      format = MESA_FORMAT_RG_UINT32;
> +      break;
>     default:
>        unreachable("Unrecognized sample count in intel_miptree_alloc_mcs");
>     };

This and the previous are:
Reviewed-by: Ben Widawsky <ben at bwidawsk.net>


More information about the mesa-dev mailing list