diff options
author | Francisco Jerez <[email protected]> | 2015-02-03 22:50:06 +0200 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2015-02-10 19:09:25 +0200 |
commit | 64fde7b31c419685aa8ef6060828e21b9a11ef51 (patch) | |
tree | a887c681ecf084f15fb0430e230daac508454215 /src | |
parent | 78e9043475d4bed8b50f7e413963c960fa0935bb (diff) |
i965/vec4: Take into account non-zero reg_offset during register allocation.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp index 80735c33c91..46f0bfd085a 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp @@ -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; } } |