[Mesa-dev] [PATCH 02/11] i965: Add missing BRW_NEW_BATCH dirty bit to Gen6+ clip state atoms.
Eric Anholt
eric at anholt.net
Mon Jan 9 08:24:07 PST 2012
On Sun, 8 Jan 2012 14:43:51 -0800, Kenneth Graunke <kenneth at whitecape.org> wrote:
> Without MI_SET_CONTEXT, there's no guarantee that another program hasn't
> reprogram the GPU's clip state since our last batch. We need to submit
> it every time.
>
> Found by inspection.
BRW_NEW_CONTEXT is the flag for "we might have lost our context because
everything got reprogrammed."
BRW_NEW_BATCH is the flag for "we have to program it again with a new
batch for other reasons (e.g. relocations ensuring that your buffer is
present).
The intent was that when we get MI_SET_CONTEXT, we just stop flagging
BRW_NEW_CONTEXT per batch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120109/05013702/attachment.pgp>
More information about the mesa-dev
mailing list