mesa/program: Take ARB_framebuffers_no_attachments into account in wpos correction
authorGert Wollny <gert.wollny@collabora.com>
Mon, 19 Aug 2019 15:41:46 +0000 (17:41 +0200)
committerGert Wollny <gert.wollny@collabora.com>
Tue, 20 Aug 2019 08:04:24 +0000 (10:04 +0200)
commit6a09405368a18fb494b92de5f9783b9a625a7235
treea3042aa9c7944f0b866d2dd3fa79ba36aac64ff5
parentfe0e9db797eee739f9705bd833acc35bf2cf96a6
mesa/program: Take ARB_framebuffers_no_attachments into account in wpos correction

If a drawbuffer is an fbo without an attachment then its 'Height' will be zero,
and we have to take its 'DefaultGeometry.Height' into account.

Fixes on softpipe (with the exception of tests that use multisample):
  dEQP-GLES31.functional.fbo.no_attachments.*

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/program/prog_statevars.c