mesa: add gl_driver_flags::NewScissor{Rect,Test}
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 6 Jun 2017 13:03:50 +0000 (15:03 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 9 Jun 2017 07:33:22 +0000 (09:33 +0200)
commit4c037af9cc06f4e472eab371447ff56753a51ea4
tree4dea2ef6c694bec9a8839f68a3f1aa0197932d5e
parent8fac894f9b8e4e2cb93061fdd25f3aecbfb3bbb7
mesa: add gl_driver_flags::NewScissor{Rect,Test}

_NEW_SCISSOR mesa flag is set when a scissor test is enabled/disabled
or when a new rectangle is defined. However, it triggers too much
changes in the state tracker.

Actually, ST_NEW_RASTERIZER should only be called when a scissor
test is enabled/disabled, while ST_NEW_SCISSOR should be called
in both situations.

In other words, this will avoid to update the rasterizer every
time a new rectangle is defined using glScissor*().

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/mtypes.h