diff options
author | Edward O'Callaghan <[email protected]> | 2015-08-29 18:31:09 +1000 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-08-30 11:41:14 +0200 |
commit | 0d19dc302f21d00b88ccb7b70e5a110d17ea4fdf (patch) | |
tree | b77338417a05e7e396a365407ade7619b0415722 /src/gallium/drivers/r600/r600_shader.c | |
parent | 3eed81a97b2fa1f98a2ae577b8b6e04cb144f31a (diff) |
r600g: Use TGSI parse results instead of manually exfiltrating
This makes better use of the work that the TGSI API has done for
us.
Signed-off-by: Edward O'Callaghan <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index a265fb81225..b7d7828a9c2 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; |