"README.rst" did not exist on "070f2808959dde535cbbdf0938ca9490f6231374"
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 <mesa-stable@lists.freedesktop.org> Reviewed-by:Eric Anholt <eric@anholt.net> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
Showing
- src/mesa/drivers/dri/i965/brw_draw.c 6 additions, 0 deletionssrc/mesa/drivers/dri/i965/brw_draw.c
- src/mesa/drivers/dri/i965/brw_state.h 1 addition, 0 deletionssrc/mesa/drivers/dri/i965/brw_state.h
- src/mesa/drivers/dri/i965/brw_state_upload.c 14 additions, 0 deletionssrc/mesa/drivers/dri/i965/brw_state_upload.c
Loading
Please register or sign in to comment