zink: handle !half_pixel_center
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 28 Jul 2022 16:20:54 +0000 (12:20 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 5 Aug 2022 03:51:04 +0000 (03:51 +0000)
commit55a4a6b8dcc8b068d24cc1b1c2e1500369c14485
tree4ed265af29886858aeee564314b5e55486843e7b
parent8a8edb310d84f1400d8b8b7e096a9dfc33e198b2
zink: handle !half_pixel_center

the shader is already getting a -0.5,-0.5 bias, but the viewport also
needs to be shifted by 0.5 to match

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17775>
src/gallium/drivers/zink/zink_draw.cpp
src/gallium/drivers/zink/zink_state.c