[Mesa-dev] [v4 10/11] i965/wm: Don't sample lossless compressed as multisampled

Ben Widawsky ben at bwidawsk.net
Tue May 10 05:47:43 UTC 2016


On Thu, Apr 21, 2016 at 02:59:05PM +0300, Topi Pohjolainen wrote:
> Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
Reviewed-by: Ben Widawsky <ben at bwidawsk.net>

> ---
>  src/mesa/drivers/dri/i965/brw_wm.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c
> index dbc626c..ced9708 100644
> --- a/src/mesa/drivers/dri/i965/brw_wm.c
> +++ b/src/mesa/drivers/dri/i965/brw_wm.c
> @@ -361,8 +361,12 @@ brw_populate_sampler_prog_key_data(struct gl_context *ctx,
>           struct intel_texture_object *intel_tex =
>              intel_texture_object((struct gl_texture_object *)t);
>  
> +         /* From gen9 onwards some single sampled buffers can also be
> +          * compressed. These don't need ld2dms sampling along with mcs fetch.
> +          */
>           if (brw->gen >= 7 &&
> -             intel_tex->mt->msaa_layout == INTEL_MSAA_LAYOUT_CMS) {
> +             intel_tex->mt->msaa_layout == INTEL_MSAA_LAYOUT_CMS &&
> +             intel_tex->mt->num_samples > 1) {
>              key->compressed_multisample_layout_mask |= 1 << s;
>  
>              if (intel_tex->mt->num_samples >= 16) {
> -- 
> 2.5.5
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list