diff options
author | Kenneth Graunke <[email protected]> | 2018-09-11 01:09:27 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:08 -0800 |
commit | 148e315d9651a9b5f25d166194f7bd2f8cff2440 (patch) | |
tree | dd70b0de792578d355bc4f78ac40b674235e1182 /src/gallium/drivers/iris | |
parent | f838400a59dc18b9994d5dfde6681998bd05ad25 (diff) |
iris: fix null FB and unbound tex surface state addresses
Diffstat (limited to 'src/gallium/drivers/iris')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 4 |
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)); } |