mesa: Handle pbuffers in desktop GL framebuffer attachment queries
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 14 Oct 2019 17:07:30 +0000 (10:07 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 15 Oct 2019 22:44:27 +0000 (15:44 -0700)
commite6ca6e587e7f88d6b06c0a5c966438beac6cb18e
tree127d82b0e47856d6cd0e5c81b75c7a25c48ef150
parentc512eca4daf75185db6f5d95b845d99bdc428950
mesa: Handle pbuffers in desktop GL framebuffer attachment queries

Once again, we were handling back-to-front in the GLES3 case, but not
the desktop GL case.

Fixes GTF-GL46.gtf30.GL3Tests.framebuffer_srgb.framebuffer_srgb_default_encoding when run with --deqp-surface-type=pbuffer --deqp-gl-context-type=egl.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/fbobject.c