diff options
author | Kenneth Graunke <[email protected]> | 2012-10-01 15:28:55 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-10-10 13:22:55 -0700 |
commit | 46e529672bb124b78eb454cbf55c72074ef6d35c (patch) | |
tree | 6d557fa19f52b9cf63130b6ee961c22e03a83674 /src/mesa/.gitignore | |
parent | 587d5db11d8047663201c5fb06a6b2feb5d55891 (diff) |
i965/vs: Fix unit mismatch in scratch base_offset parameter.
move_grf_array_access_to_scratch() calculates scratch buffer offsets in
bytes. However, emit_scratch_read/write() expects the base_offset
parameter to be measured in OWords.
As a result, a shader using a scratch read/write offset greater than
zero (in practice, a shader containing more than one variable in
scratch) would use too large an offset, frequently exceeding the
available scratch space.
This patch corrects the mismatch by removing spurious conversion from
OWords to bytes in move_grf_array_access_to_scratch().
This is based on a patch by Paul Berry.
NOTE: This is a candidate for stable release branches.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/.gitignore')
0 files changed, 0 insertions, 0 deletions