diff options
author | Henri Verbeet <[email protected]> | 2011-07-09 17:18:59 +0200 |
---|---|---|
committer | Henri Verbeet <[email protected]> | 2011-07-09 18:12:50 +0200 |
commit | 2b5b289a570c699403f115cf3ad094ce92eba2fb (patch) | |
tree | a05b500d0144ea496def1127729b304fd9b6c0cf /src/gallium/drivers/r600/r600_shader.c | |
parent | 89dc31a28d8e5607989ec11cfd29310c1c97f6ac (diff) |
r600g: Store the chip class directly in r600_bc.
Instead of deriving it from the family again.
Signed-off-by: Henri Verbeet <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 6f84d8740ee..de49d212a58 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -609,9 +609,7 @@ static int r600_shader_from_tgsi(struct r600_pipe_context * rctx, struct r600_pi ctx.bc = &shader->bc; ctx.shader = shader; - r = r600_bc_init(ctx.bc, rctx->family); - if (r) - return r; + r600_bc_init(ctx.bc, rctx->chip_class); ctx.tokens = tokens; tgsi_scan_shader(tokens, &ctx.info); tgsi_parse_init(&ctx.parse, tokens); |