mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
nv50: apply relocations to shader code
On nv50, branches are absolute, so we need to adjust them according to the shader's position in the code buffer.
This commit is contained in:
parent
040ff18a21
commit
908013b737
1 changed files with 2 additions and 0 deletions
|
|
@ -149,6 +149,8 @@ nv50_program_validate(struct nv50_context *nv50, struct nv50_program *prog)
|
|||
return FALSE;
|
||||
prog->code_base = prog->res->start;
|
||||
|
||||
nv50_relocate_program(prog, prog->code_base, 0);
|
||||
|
||||
nv50_sifc_linear_u8(&nv50->base, nv50->screen->code,
|
||||
(prog->type << 16) + prog->code_base,
|
||||
NOUVEAU_BO_VRAM, prog->code_size, prog->code);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue