[Mesa-dev] [PATCH] st/mesa: set dimension for constants in ATI_fragment_shader

Marek Olšák maraeo at gmail.com
Wed Oct 18 17:34:46 UTC 2017


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Sun, Oct 15, 2017 at 7:46 PM, Miklós Máté <mtmkls at gmail.com> wrote:
> This fixes an assertion failure introduced by 30a2f0dfd46de.
>
> Signed-off-by: Miklós Máté <mtmkls at gmail.com>
> ---
>  src/mesa/state_tracker/st_atifs_to_tgsi.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_atifs_to_tgsi.c b/src/mesa/state_tracker/st_atifs_to_tgsi.c
> index 2a171b5a84..25ccf70735 100644
> --- a/src/mesa/state_tracker/st_atifs_to_tgsi.c
> +++ b/src/mesa/state_tracker/st_atifs_to_tgsi.c
> @@ -637,6 +637,10 @@ set_src(struct tgsi_full_instruction *inst, unsigned i, unsigned file, unsigned
>     inst->Src[i].Register.SwizzleY = y;
>     inst->Src[i].Register.SwizzleZ = z;
>     inst->Src[i].Register.SwizzleW = w;
> +   if (file == TGSI_FILE_CONSTANT) {
> +      inst->Src[i].Register.Dimension = 1;
> +      inst->Src[i].Dimension.Index = 0;
> +   }
>  }
>
>  #define SET_SRC(inst, i, file, index, x, y, z, w) \
> --
> 2.15.0.rc0
>
> _______________________________________________
> 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