isl/state: Refactor the setup of clear colors
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 3 Jun 2016 02:02:23 +0000 (19:02 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 22 Jun 2016 19:26:43 +0000 (12:26 -0700)
commit87f0ffa646e97def0f81ba2ad12eab2702dfd7b1
tree7361528a9bde40d41821c8277b769eb5cedf1e26
parent62a5e6e03117e5eb3f777633409cb8036be6877d
isl/state: Refactor the setup of clear colors

This commit switches clear colors to use #if's instead of a C if.  This
lets us properly handle SNB where the clear color field doesn't exist.

Reviewed-by: Chad Versace <chad.versace@intel.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/intel/isl/isl_surface_state.c