zink: handle scissor+viewport states dynamically if extension is available
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 16 Sep 2020 18:10:00 +0000 (14:10 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Feb 2021 14:04:29 +0000 (14:04 +0000)
commit547e982e8e9d9af78fda4e950a80aab45c6b9abc
treeb2863c924a95b803c6c818d3b1443ef94aa9eb62
parent8bae8ca723ddf7368457996c0e265c395bf14eec
zink: handle scissor+viewport states dynamically if extension is available

this is a huge perf win since it means we don't have to create a new pipeline
every time this state changes

also we can now move the viewport state back to zink_context since that's the
real value we're using and the pipeline state value is just for the hash

ref mesa/mesa#3359

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9153>
src/gallium/drivers/zink/zink_blit.c
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_context.h
src/gallium/drivers/zink/zink_draw.c
src/gallium/drivers/zink/zink_pipeline.c