Skip to content
  • Gert Wollny's avatar
    vrend: Keep track op HW scissor state and disable them in vrend_clear · ac7b52cf
    Gert Wollny authored
    vrend_clear executes the Gallium clear command which is only called
    when the whole viewport is cleared. So far mesa was doing excessive checks
    on the scissors, thereby updating the scissors to framebuffer size when they
    were disabled, and the according state changes were transmitted to the host.
    With mesa/2037478 this was optimized away, so that not disabling the scissors
    in the clear command manifested itself as a regression in a number of tests.
    Keeping track of the scissor state in the hardware and disabling the scissors
    before the clear is executes, and re-enabling them according to the last state
    fixes this.
    
    Closes #116
    
    
    
    Signed-off-by: default avatarGert Wollny <gert.wollny@collabora.com>
    Reviewed-by: default avatarGurchetan Singh <gurchetansingh@chromium.org>
    ac7b52cf