[Mesa-dev] [PATCH 4/4] r600g: Use TGSI parse results instead of manually exfiltrating

Marek Olšák maraeo at gmail.com
Sat Aug 29 14:17:35 PDT 2015


This is a patch that doesn't change anything. :)

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

Marek

On Sat, Aug 29, 2015 at 10:31 AM, Edward O'Callaghan
<edward.ocallaghan at koparo.com> wrote:
> From: Edward O'Callaghan <eocallaghan at alterapraxis.com>
>
> This makes better use of the work that the TGSI API has done for
> us.
>
> Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
> ---
>  src/gallium/drivers/r600/r600_shader.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
> index a265fb8..b7d7828 100644
> --- a/src/gallium/drivers/r600/r600_shader.c
> +++ b/src/gallium/drivers/r600/r600_shader.c
> @@ -1839,7 +1839,7 @@ static int r600_shader_from_tgsi(struct r600_context *rctx,
>         shader->indirect_files = ctx.info.indirect_files;
>         indirect_gprs = ctx.info.indirect_files & ~(1 << TGSI_FILE_CONSTANT);
>         tgsi_parse_init(&ctx.parse, tokens);
> -       ctx.type = ctx.parse.FullHeader.Processor.Processor;
> +       ctx.type = ctx.info.processor;
>         shader->processor_type = ctx.type;
>         ctx.bc->type = shader->processor_type;
>
> --
> 2.4.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list