i965/wm_surface_state: Use the clear address if clear_bo is non-NULL
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 10 Apr 2018 20:56:18 +0000 (13:56 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Tue, 24 Apr 2018 20:41:14 +0000 (13:41 -0700)
commitcd5ce363e3fcf975c05a5f325292e95df8322cfb
tree3d66841768eafd9dd8da112e8ea1379cbbbc9ee9
parentaf4e9295febe966ace7793e43ba35705521749e8
i965/wm_surface_state: Use the clear address if clear_bo is non-NULL

We want to add and use a getter that turns off the indirect path by
returning zero for the clear color bo and offset.

v2: Fix usage of "clear address" in commit message (Jason).

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c