isl/state: Only set clear color if aux is used
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 5 Aug 2016 22:06:36 +0000 (15:06 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 17 Aug 2016 21:46:22 +0000 (14:46 -0700)
commitdc880c99b656988eadf012000a01869e40be8f57
tree81442105d907b8b0d0534eb5c78bfe2fd92eeecf
parent2684e48321ac2a22161ae3ed1c21c0169946eed9
isl/state: Only set clear color if aux is used

Otherwise, the clear color will get ignored.  This prevents assertion
errors if clear color is set to something invalid and aux is not used.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/isl/isl_surface_state.c