diff options
author | Kenneth Graunke <[email protected]> | 2011-04-12 15:42:06 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-04-18 15:26:34 -0700 |
commit | 42a805700039e81a9245f46f153e2cd9705cd0d7 (patch) | |
tree | 7e0f0683df5a1fa4f44fb8e9af4c8c065fdc573e /src/mesa/ppc | |
parent | 3d5cfcfed16c5a79bdf67027afe4ea8058b899cb (diff) |
i965: Allocate the whole URB to the VS and fix calculations for Gen6.
Since we never enable the GS on Sandybridge, there's no need to allocate
it any URB space.
Furthermore, the previous calculation was incorrect: it neglected to
multiply by nr_vs_entries, instead comparing whether twice the size of
a single VS URB entry was bigger than the entire URB space. It also
neglected to take into account that vs_size is in units of 128 byte
blocks, while urb_size is in bytes.
Despite the above problems, the calculations resulted in an acceptable
programming of the URB in most cases, at least on GT2.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/ppc')
0 files changed, 0 insertions, 0 deletions