i965/vec4: Take into account non-zero reg_offset during register allocation.
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user