intel/blorp: Handle NIR clear inputs the same way as blit inputs
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 21 Oct 2016 21:15:03 +0000 (14:15 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 16 Nov 2016 18:11:29 +0000 (10:11 -0800)
commit21943c35f75d90f464f8495f5282037e1c7c79d0
tree72c87e3045ac88dd1c6ca8bb8ed3caed11c9b3b5
parent570a0e844b4be3bc5546b860e9968b55b2f3909d
intel/blorp: Handle NIR clear inputs the same way as blit inputs

By using offsetof() we can ensure that adding fiels to wm_inputs is always
safe as long as we maintain alignment.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/blorp/blorp_blit.c
src/intel/blorp/blorp_clear.c
src/intel/blorp/blorp_priv.h