i915: Compute maximum number of verts using the actual batchbuffer size.
authorKurt Roeckx <kurt@roeckx.be>
Fri, 2 Mar 2012 23:34:45 +0000 (15:34 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 3 Mar 2012 01:16:13 +0000 (17:16 -0800)
commit024ece7523f1735d2fca0067c0a3bdcf53fde8f9
tree951cdbdf68ac5647f462377313006fd1cbcce0ac
parent33b07893e92dcee495908c549be872887096c894
i915: Compute maximum number of verts using the actual batchbuffer size.

We were looking at the size of batch.map for how big the batchbuffer
was, but on 865 we just use a single-page batchbuffer due to hardware
limits.

v2: Removed check for sizeof map < bo->size, since that's always false.
    [change by anholt]
NOTE: This is a candidate for release branches.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41495
src/mesa/drivers/dri/i915/intel_render.c