diff options
author | Ilia Mirkin <[email protected]> | 2016-05-07 16:14:01 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-05-11 20:39:26 -0400 |
commit | f5fe9030021af830e6c4453f4ad1521cbb697c81 (patch) | |
tree | a72b5f07df3b79ba860f1b86ed91890695da7bb3 /src/gallium/drivers/nouveau/nv50 | |
parent | 66a442687f72ccf92ce50bb414565cb80ed2ab53 (diff) |
nv50/ir: generalize interp fixups to be able to fixup anything
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv50')
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_program.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_program.c b/src/gallium/drivers/nouveau/nv50/nv50_program.c index 3444b3110de..89db67f0524 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_program.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_program.c @@ -372,7 +372,7 @@ nv50_program_translate(struct nv50_program *prog, uint16_t chipset, prog->code = info->bin.code; prog->code_size = info->bin.codeSize; prog->fixups = info->bin.relocData; - prog->interps = info->bin.interpData; + prog->interps = info->bin.fixupData; prog->max_gpr = MAX2(4, (info->bin.maxGPR >> 1) + 1); prog->tls_space = info->bin.tlsSpace; @@ -479,9 +479,9 @@ nv50_program_upload_code(struct nv50_context *nv50, struct nv50_program *prog) if (prog->fixups) nv50_ir_relocate_code(prog->fixups, prog->code, prog->code_base, 0, 0); if (prog->interps) - nv50_ir_change_interp(prog->interps, prog->code, - prog->fp.force_persample_interp, - false /* flatshade */); + nv50_ir_apply_fixups(prog->interps, prog->code, + prog->fp.force_persample_interp, + false /* flatshade */); nv50_sifc_linear_u8(&nv50->base, nv50->screen->code, (prog_type << NV50_CODE_BO_SIZE_LOG2) + prog->code_base, |