OSDN Git Service

i965/surface_state: Emit the clear color address instead of value.
authorRafael Antognolli <rafael.antognolli@intel.com>
Tue, 29 Aug 2017 23:30:26 +0000 (16:30 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 5 Apr 2018 14:42:45 +0000 (07:42 -0700)
commit7987d041fda0c98b243e540a46ac3a57a23cad26
tree4e0e91caa8bf8fa707359e01f2c427c3c47834b9
parent2efe8309d3dd44eb37dcf887f49fb3ce14746df8
i965/surface_state: Emit the clear color address instead of value.

On Gen10, when emitting the surface state, use the value stored in the
clear color entry buffer by using a clear color address in the surface
state.

v4: Use the clear color offset from the clear_color_bo, when available.

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c