diff options
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen7_wm_surface_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c index 79182560a3d..74389525a19 100644 --- a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c @@ -273,6 +273,7 @@ gen7_emit_texture_surface_state(struct brw_context *brw, unsigned format, unsigned swizzle, uint32_t *surf_offset, + int surf_index /* unused */, bool rw, bool for_gather) { const unsigned depth = max_layer - min_layer; @@ -387,12 +388,14 @@ gen7_update_texture_surface(struct gl_context *ctx, if (for_gather && format == BRW_SURFACEFORMAT_R32G32_FLOAT) format = BRW_SURFACEFORMAT_R32G32_FLOAT_LD; + const int surf_index = surf_offset - &brw->wm.base.surf_offset[0]; + gen7_emit_texture_surface_state(brw, mt, obj->Target, obj->MinLayer, obj->MinLayer + depth, obj->MinLevel + obj->BaseLevel, obj->MinLevel + intel_obj->_MaxLevel + 1, - format, swizzle, - surf_offset, false, for_gather); + format, swizzle, surf_offset, + surf_index, false, for_gather); } } |