summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_state.c4
1 files changed, 4 insertions, 0 deletions
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));
}