[Mesa-dev] [PATCH] anv: fix writemask on blit fragment shader.

Jason Ekstrand jason at jlekstrand.net
Tue Aug 16 00:35:47 UTC 2016


Drp... Thanks!

Cc: "12.0" <mesa-stable at lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Mon, Aug 15, 2016 at 5:01 PM, Dave Airlie <airlied at gmail.com> wrote:

> From: Dave Airlie <airlied at redhat.com>
>
> I'm not sure if anything even uses this, but I found this on radv, so
> just fix it on anv for consistency.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/intel/vulkan/anv_meta_blit.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/intel/vulkan/anv_meta_blit.c b/src/intel/vulkan/anv_meta_
> blit.c
> index e8b244b..d2e375a 100644
> --- a/src/intel/vulkan/anv_meta_blit.c
> +++ b/src/intel/vulkan/anv_meta_blit.c
> @@ -106,7 +106,7 @@ build_nir_copy_fragment_shader(enum glsl_sampler_dim
> tex_dim)
>     nir_variable *color_out = nir_variable_create(b.shader,
> nir_var_shader_out,
>                                                   vec4, "f_color");
>     color_out->data.location = FRAG_RESULT_DATA0;
> -   nir_store_var(&b, color_out, &tex->dest.ssa, 4);
> +   nir_store_var(&b, color_out, &tex->dest.ssa, 0xf);
>
>     return b.shader;
>  }
> --
> 2.5.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160815/009a7999/attachment.html>


More information about the mesa-dev mailing list