panfrost: Fix viewports
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 24 Mar 2019 20:01:15 +0000 (20:01 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 26 Mar 2019 23:35:10 +0000 (23:35 +0000)
commitbd9446e719a44f345d2db2e5223f3f9b88a989d9
treed9b9f665afcf4bddc17220553b0148f9dac39f87
parent9da4603fb630bb6cee3e37808f7e4b4de87b18fc
panfrost: Fix viewports

Our viewport code hardcoded a number of wrong assumptions, which sort of
sometimes worked but was definitely wrong (and broke most of dEQP). This
corrects the logic, accounting for flipped-Y framebuffers, which
fixes... most of dEQP.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/pan_context.c