[Mesa-dev] [PATCH] st/mesa: update inst->info along with inst->op
Marek Olšák
maraeo at gmail.com
Mon May 23 14:39:08 UTC 2016
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Sun, May 22, 2016 at 10:52 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Otherwise we still have TGSI_OPCODE_CMP's info, which causes a number of
> later logic to go wrong. This fixes
>
> dEQP-GLES2.functional.shaders.functions.control_flow.return_in_if_vertex
>
> on nv30.
>
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
> src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> index 9d2057e..aa443a5 100644
> --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> @@ -4459,6 +4459,7 @@ glsl_to_tgsi_visitor::simplify_cmp(void)
> && inst->dst[0].writemask == get_src_arg_mask(inst->dst[0], inst->src[2])) {
>
> inst->op = TGSI_OPCODE_MOV;
> + inst->info = tgsi_get_opcode_info(inst->op);
> inst->src[0] = inst->src[1];
> }
> }
> --
> 2.7.3
>
> _______________________________________________
> 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