On Sun, 8 Jan 2012 14:43:51 -0800, Kenneth Graunke <kenn...@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.
pgpQ234VLsSZh.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev