r600g: Use TGSI parse results instead of manually exfiltrating
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>
Sat, 29 Aug 2015 08:31:09 +0000 (18:31 +1000)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 30 Aug 2015 09:41:14 +0000 (11:41 +0200)
This makes better use of the work that the TGSI API has done for
us.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/r600_shader.c

index a265fb8122533f45f6ae47d95377f60bbe1a9d7e..b7d7828a9c232722c53ed1f16283ba758af8d5f5 100644 (file)
@@ -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;