diff options
author | Kenneth Graunke <[email protected]> | 2016-09-21 21:20:19 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-10-04 17:09:07 -0700 |
commit | f2b9b0c730e345bcffa9eadabb25af3ab02642f2 (patch) | |
tree | 0e787dbd77633973199960efed3fb919b4e9b008 /src/mesa/drivers/dri/i965 | |
parent | 0047d600afee613c5b4fd64c986edfd5c38548c9 (diff) |
i965: Add missing BRW_NEW_FS_PROG_DATA to render target reads.
Cc: [email protected]
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 61a4b948ea7..b99faeade67 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -1143,6 +1143,7 @@ update_renderbuffer_read_surfaces(struct brw_context *brw) for (unsigned i = 0; i < fb->_NumColorDrawBuffers; i++) { struct gl_renderbuffer *rb = fb->_ColorDrawBuffers[i]; const struct intel_renderbuffer *irb = intel_renderbuffer(rb); + /* BRW_NEW_FS_PROG_DATA */ const unsigned surf_index = brw->wm.prog_data->binding_table.render_target_read_start + i; uint32_t *surf_offset = &brw->wm.base.surf_offset[surf_index]; @@ -1210,7 +1211,8 @@ const struct brw_tracked_state brw_renderbuffer_read_surfaces = { .dirty = { .mesa = _NEW_BUFFERS, .brw = BRW_NEW_BATCH | - BRW_NEW_FRAGMENT_PROGRAM, + BRW_NEW_FRAGMENT_PROGRAM | + BRW_NEW_FS_PROG_DATA, }, .emit = update_renderbuffer_read_surfaces, }; |