intel: Add a macro for printing a debug warning once.
authorEric Anholt <eric@anholt.net>
Fri, 12 Oct 2012 19:41:56 +0000 (12:41 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 16 Oct 2012 20:13:44 +0000 (13:13 -0700)
commit1fe71848b6ba0bba4def2887d977ac413030a5fb
tree63cfba0f388b4d620b45745126eb7964c67a456d
parent85067d4babd6fd8a131088b8c0b673bff021a502
intel: Add a macro for printing a debug warning once.

There are a number of places where some obscure piece of the code is not
currently worth fixing, and we have some workaround behavior available.  It's
nicer for users to do some lame workaround than to just assert, but without
asserts we never knew when the workaround was at fault.

This should give us a nice compromise: Execute the workaround, but mention
that the obscure workaround was hit.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_context.h