OSDN Git Service

i965: Reserve more batch space to accomodate Gen6 perfmonitors.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 4 Mar 2015 23:46:57 +0000 (15:46 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 6 Jul 2015 17:00:47 +0000 (10:00 -0700)
commitd9ab95b365f058a46bc43a8cb96b6fff10a13faf
tree31cee2b626670eeb44bfaf3b6fe2344e9b702039
parent493af150fb3b1c007d791b24dcd5ea8a92ad763c
i965: Reserve more batch space to accomodate Gen6 perfmonitors.

Ben noticed that I said each PIPE_CONTROL was 4 DWords, but it's
actually 5 DWords on Gen6-7.  We've been reserving insufficient space
for performance monitoring on Sandybridge, which means it would likely
break if you used that functionality.  (Thankfully, no one does...)

Also, the existing number of 146 was the result of me flubbing up the
arithmetic: it should have actually been 140.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/intel_batchbuffer.h