mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
i965/vec4: Take into account non-zero reg_offset during register allocation.
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
78e9043475
commit
64fde7b31c
1 changed files with 3 additions and 1 deletions
|
|
@ -38,7 +38,9 @@ static void
|
|||
assign(unsigned int *reg_hw_locations, backend_reg *reg)
|
||||
{
|
||||
if (reg->file == GRF) {
|
||||
reg->reg = reg_hw_locations[reg->reg];
|
||||
assert(reg->reg_offset >= 0);
|
||||
reg->reg = reg_hw_locations[reg->reg] + reg->reg_offset;
|
||||
reg->reg_offset = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue