From 148e315d9651a9b5f25d166194f7bd2f8cff2440 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 11 Sep 2018 01:09:27 -0700 Subject: [PATCH] iris: fix null FB and unbound tex surface state addresses --- src/gallium/drivers/iris/iris_state.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 5472ff57fca..454e05979e4 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1754,6 +1754,8 @@ iris_set_framebuffer_state(struct pipe_context *ctx, upload_state(ice->state.surface_uploader, &ice->state.null_fb, 4 * GENX(RENDER_SURFACE_STATE_length), 64); isl_null_fill_state(&screen->isl_dev, null_surf_map, isl_extent3d(cso->width, cso->height, cso->layers ? cso->layers : 1)); + ice->state.null_fb.offset += + iris_bo_offset_from_base_address(iris_resource_bo(ice->state.null_fb.res)); ice->state.dirty |= IRIS_DIRTY_DEPTH_BUFFER; @@ -4328,4 +4330,6 @@ genX(init_state)(struct iris_context *ice) upload_state(ice->state.surface_uploader, &ice->state.unbound_tex, 4 * GENX(RENDER_SURFACE_STATE_length), 64); isl_null_fill_state(&screen->isl_dev, null_surf_map, isl_extent3d(1, 1, 1)); + ice->state.unbound_tex.offset += + iris_bo_offset_from_base_address(iris_resource_bo(ice->state.unbound_tex.res)); } -- 2.30.2