i965: Only #if...#endif a single function or related section at a time.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 1 May 2017 22:51:41 +0000 (15:51 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 10 May 2017 18:41:46 +0000 (11:41 -0700)
commit3d70e00c625ffb642fa897c20b0f9e006e8ef27e
treeff98487651c6550b2059aa02dc019d048cb60ae8
parent774db15aaf6dc5a2331f9323328f92152547bb13
i965: Only #if...#endif a single function or related section at a time.

Previously we guarded large swathes of code with #if GEN ... #endif
blocks.  This made it difficult to see which generations include what.

This patch splits up the #if..#endif sections so they surround a small
section of code - usually a single function/atom, or sometimes a group
of related functions.  It should make the code easier to work on.

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/mesa/drivers/dri/i965/genX_state_upload.c