i965/surface_state: Remove the mcs_buf->offset == 0 restriction
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 14 Jul 2017 22:28:21 +0000 (15:28 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 17 Jul 2017 20:48:38 +0000 (13:48 -0700)
This assert was removed in b0cc55f29831638069407a4c1a5c809b26902ab6 but
got added back in 1a43d774b613d0b00e26b28cc752d944ce8049aa, probably by
accident.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c

index 1d1df9aae0814e3cafc2be04f07f515f65e9d919..8d95f13f98e4905cdad813f18aa83d72e34168a4 100644 (file)
@@ -147,7 +147,6 @@ brw_emit_surface_state(struct brw_context *brw,
       if (mt->mcs_buf) {
          aux_surf = &mt->mcs_buf->surf;
 
-         assert(mt->mcs_buf->offset == 0);
          aux_bo = mt->mcs_buf->bo;
          aux_offset = mt->mcs_buf->bo->offset64 + mt->mcs_buf->offset;
       } else {