mesa: GL_MESA_framebuffer_flip_y extension [v4]
authorFritz Koenig <frkoenig@google.com>
Mon, 23 Jul 2018 17:10:54 +0000 (10:10 -0700)
committerChad Versace <chadversary@chromium.org>
Fri, 27 Jul 2018 19:32:25 +0000 (12:32 -0700)
commit318c265160ed33a2d9f7d664e1b247cbbc38203f
tree161a55c710b3e7764602afe676a58d75e5f44a8c
parent7953399e599862769bc29f5f98322adbcf6c3951
mesa: GL_MESA_framebuffer_flip_y extension [v4]

Adds an extension to glFramebufferParameteri
that will specify if the framebuffer is vertically
flipped. Historically system framebuffers are
vertically flipped and user framebuffers are not.
Checking to see the state was done by looking at
the name field.  This adds an explicit field.

v2:
  * updated spec language [for chadv]
  * correctly specifying ES 3.1 [for chadv]
  * refactor access to rb->Name [for jason]
  * handle GetFramebufferParameteriv [for chadv]
v3:
  * correct _mesa_GetMultisamplefv [for kusmabite]
v4:
  * update spec language [for chadv]
  * s/GLboolean/bool/g [for chadv]
  * s/InvertedY/FlipY/g [for chadv]
  * s/inverted_y/flip_y/g [for chadv]
  * assert changes [for chadv]

Reviewed-by: Chad Versace <chadversary@chromium.org>
30 files changed:
docs/specs/MESA_framebuffer_flip_y.txt [new file with mode: 0644]
docs/specs/enums.txt
include/GLES2/gl2ext.h
src/mapi/glapi/registry/gl.xml
src/mesa/drivers/dri/i915/intel_fbo.c
src/mesa/drivers/dri/i965/intel_fbo.c
src/mesa/drivers/dri/nouveau/nouveau_fbo.c
src/mesa/drivers/dri/radeon/radeon_fbo.c
src/mesa/drivers/dri/radeon/radeon_span.c
src/mesa/drivers/dri/swrast/swrast.c
src/mesa/drivers/osmesa/osmesa.c
src/mesa/drivers/x11/xm_buffer.c
src/mesa/drivers/x11/xmesaP.h
src/mesa/main/accum.c
src/mesa/main/dd.h
src/mesa/main/extensions_table.h
src/mesa/main/fbobject.c
src/mesa/main/framebuffer.c
src/mesa/main/glheader.h
src/mesa/main/mtypes.h
src/mesa/main/readpix.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/swrast/s_blit.c
src/mesa/swrast/s_clear.c
src/mesa/swrast/s_copypix.c
src/mesa/swrast/s_depth.c
src/mesa/swrast/s_drawpix.c
src/mesa/swrast/s_renderbuffer.c
src/mesa/swrast/s_renderbuffer.h
src/mesa/swrast/s_stencil.c