OSDN Git Service

intel: Reserve less batchbuffer space.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 8 Jun 2013 17:17:22 +0000 (10:17 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 10 Jun 2013 17:58:51 +0000 (10:58 -0700)
commita0037cecd1d8c609070e1b464ea0693e8769e55c
tree54c155391660fc71926043d08105d34aee49c712
parentfc800f0c60a21bc895d1db55a41fb99c306e1544
intel: Reserve less batchbuffer space.

Now that Gen6+ relies on hardware contexts, we don't need to record an
occlusion query value at the end of each batch.  That means we no longer
need to reserve space for the absurd number of PIPE_CONTROLs required to
do that on Sandybridge.

See commit 4e087de51ad0e7ba4a7199d3664e1d096f8dc510, which bumped this
up to 60 bytes.  This is not quite a revert, as it uses 24 bytes instead
of 16, and saves the comments.  As far as I can tell, the old value of
16 bytes was just wrong, so we shouldn't go back to that.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_batchbuffer.h