path: root/
diff options
authorPaul Berry <>2014-01-10 18:56:14 -0800
committerCarl Worth <>2014-01-25 16:37:19 -0800
commit9ca4c8f6a22bc762998fc2a95404dfb51c686a0a (patch)
treeb7f37e8688a892c4a17db8b92a0f4d6c0dfb8a1d /
parent502d89b260fe33b589b1525e973a9bad41794c0b (diff)
i965: Ensure that all necessary state is re-emitted if we run out of aperture.
Prior to this patch, if we ran out of aperture space during brw_try_draw_prims(), we would rewind the batch buffer pointer (potentially throwing some state that may have been emitted by brw_upload_state()), flush the batch, and then try again. However, we wouldn't reset the dirty bits to the state they had before the call to brw_upload_state(). As a result, when we tried again, there was a danger that we wouldn't re-emit all the necessary state. (Note: prior to the introduction of hardware contexts, this wasn't a problem because flushing the batch forced all state to be re-emitted). This patch fixes the problem by leaving the dirty bits set at the end of brw_upload_state(); we only clear them after we have determined that we don't need to rewind the batch buffer. Cc: 10.0 9.2 <> Reviewed-by: Eric Anholt <> Reviewed-by: Kenneth Graunke <> (cherry picked from commit fb6d9798a0c6eefd512f5b0f19eed34af8f4f257)
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions